Add test case for 'null' stdin mode

This commit is contained in:
Gregory Anders
2021-07-12 13:22:56 -06:00
committed by James McCoy
parent 008b83f5a2
commit 3a0543bd61

View File

@@ -348,6 +348,12 @@ describe('jobs', function()
eq(false, pcall(function()
nvim('command', 'call jobsend(j, ["some data"])')
end))
command("let g:job_opts.stdin = 'null'")
nvim('command', "let j = jobstart(['cat', '-'], g:job_opts)")
eq(false, pcall(function()
nvim('command', 'call jobsend(j, ["some data"])')
end))
end)
it('disallows jobsend on a non-existent job', function()