aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-08-27 07:26:32 -0400
committerGitHub <noreply@github.com>2021-08-27 07:26:32 -0400
commit88336851ee1e9c3982195592ae2fc145ecfd3369 (patch)
tree0807ac11e551e08ae430917215037dbc8221222d /test
parentb6b12ea7c3f2a5ac18d92efc5e4ef814971dfdef (diff)
parent3a0543bd616f1b726f9fc385703d45e8e4aee287 (diff)
downloadrneovim-88336851ee1e9c3982195592ae2fc145ecfd3369.tar.gz
rneovim-88336851ee1e9c3982195592ae2fc145ecfd3369.tar.bz2
rneovim-88336851ee1e9c3982195592ae2fc145ecfd3369.zip
Merge pull request #15496 from jamessan/stdin_closed_backport
backport: 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()