diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-21 19:49:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-21 19:49:08 +0200 |
commit | e1fc51558dc14906a8d9f6a6e7bb1ac2a6ba8f3d (patch) | |
tree | 4128c9bcc4f90ef51c976d324e22a32f81c2aabe /src/testdir/test_channel.vim | |
parent | 259a90f7ce4d6d983a7fe5461da88cc52c46d9fe (diff) |
patch 8.0.1742: cannot get a list of all the jobsv8.0.1742
Problem: Cannot get a list of all the jobs. Cannot get the command of
the job.
Solution: When job_info() is called without an argument return a list of
jobs. Otherwise, include the command that the job is running.
(Yegappan Lakshmanan)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r-- | src/testdir/test_channel.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index ce573f9431..805fa8dcac 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -508,6 +508,16 @@ func Test_raw_pipe() let info = job_info(job) call assert_equal("dead", info.status) call assert_equal("term", info.stoponexit) + call assert_equal(2, len(info.cmd)) + call assert_equal("test_channel_pipe.py", info.cmd[1]) + + let found = 0 + for j in job_info() + if j == job + let found += 1 + endif + endfor + call assert_equal(1, found) endfunc func Test_nl_pipe() |