From 3a0543bd616f1b726f9fc385703d45e8e4aee287 Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Mon, 12 Jul 2021 13:22:56 -0600 Subject: Add test case for 'null' stdin mode --- test/functional/core/job_spec.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index 34ab90d760..c4745e636f 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -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() -- cgit