diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-08-20 12:58:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-20 12:58:37 +0200 |
commit | 71b3e20d0fba20d4957c1949352bde1744a0a947 (patch) | |
tree | 7844b2d185b27a0303183e90792a5ef807933e88 /test/functional/core | |
parent | 1b825a9ada4d89059645bc7a458e1e8d931c6161 (diff) | |
parent | 2d60a15e25f487eda1ac00a9e6cdf9a6564fb416 (diff) | |
download | rneovim-71b3e20d0fba20d4957c1949352bde1744a0a947.tar.gz rneovim-71b3e20d0fba20d4957c1949352bde1744a0a947.tar.bz2 rneovim-71b3e20d0fba20d4957c1949352bde1744a0a947.zip |
Merge pull request #4723 from bfredl/rpcstderr
allow stderr handler for rpc jobs and use it to display python/ruby startup error
Diffstat (limited to 'test/functional/core')
-rw-r--r-- | test/functional/core/job_spec.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index 1d11374e4d..921bf1655e 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -5,6 +5,7 @@ local clear, eq, eval, execute, feed, insert, neq, next_msg, nvim, helpers.insert, helpers.neq, helpers.next_message, helpers.nvim, helpers.nvim_dir, helpers.ok, helpers.source, helpers.write_file, helpers.mkdir, helpers.rmdir +local command = helpers.command local Screen = require('test.functional.ui.screen') @@ -429,6 +430,13 @@ describe('jobs', function() eq({'notification', 'j', {0, {jobid, 'exit'}}}, next_msg()) end) + it('cannot have both rpc and pty options', function() + command("let g:job_opts.pty = v:true") + command("let g:job_opts.rpc = v:true") + local _, err = pcall(command, "let j = jobstart(['cat', '-'], g:job_opts)") + ok(string.find(err, "E475: Invalid argument: job cannot have both 'pty' and 'rpc' options set") ~= nil) + end) + describe('running tty-test program', function() local function next_chunk() local rv |