diff options
author | Gregory Anders <greg@gpanders.com> | 2021-07-12 13:22:56 -0600 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2021-07-12 13:22:56 -0600 |
commit | f83763b2615e272d2187ae042a968672c37a5764 (patch) | |
tree | a4ef1472d91cf6b6a04b566a04b5115b534a78b8 /test/functional/core/job_spec.lua | |
parent | d7382475b31cb7b130aa9c7ce17d42adc16ac0bb (diff) | |
download | rneovim-f83763b2615e272d2187ae042a968672c37a5764.tar.gz rneovim-f83763b2615e272d2187ae042a968672c37a5764.tar.bz2 rneovim-f83763b2615e272d2187ae042a968672c37a5764.zip |
Add test case for 'null' stdin mode
Diffstat (limited to 'test/functional/core/job_spec.lua')
-rw-r--r-- | test/functional/core/job_spec.lua | 6 |
1 files changed, 6 insertions, 0 deletions
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() |