aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-07-13 20:51:46 +0200
committerGitHub <noreply@github.com>2021-07-13 20:51:46 +0200
commit02bf251bb3f1dd55a2c6599790ae6a7772082cdd (patch)
treea4ef1472d91cf6b6a04b566a04b5115b534a78b8 /test
parenteece0735fe3b4f70747644ebf5daf7320f441616 (diff)
parentf83763b2615e272d2187ae042a968672c37a5764 (diff)
downloadrneovim-02bf251bb3f1dd55a2c6599790ae6a7772082cdd.tar.gz
rneovim-02bf251bb3f1dd55a2c6599790ae6a7772082cdd.tar.bz2
rneovim-02bf251bb3f1dd55a2c6599790ae6a7772082cdd.zip
Merge pull request #14812 from gpanders/stdin_closed
feat(job): add parameter to close stdin
Diffstat (limited to 'test')
-rw-r--r--test/functional/core/job_spec.lua6
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()