comparison src/testdir/test_channel.vim @ 19793:607e5d7968b9 v8.2.0453

patch 8.2.0453: trailing space in job_start() command causes empty argument Commit: https://github.com/vim/vim/commit/7851b1ca992222880df1314684a790f293e11896 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 26 16:27:38 2020 +0100 patch 8.2.0453: trailing space in job_start() command causes empty argument Problem: Trailing space in job_start() command causes empty argument. Solution: Ignore trailing space. (closes https://github.com/vim/vim/issues/5851)
author Bram Moolenaar <Bram@vim.org>
date Thu, 26 Mar 2020 16:30:03 +0100
parents b3e93a05c3ca
children 4403ab355d5e
comparison
equal deleted inserted replaced
19792:6bef434ae7ba 19793:607e5d7968b9
2033 let g:Ch_job = l:job 2033 let g:Ch_job = l:job
2034 call WaitForAssert({-> assert_equal("local local", trim(g:Ch_reply))}) 2034 call WaitForAssert({-> assert_equal("local local", trim(g:Ch_reply))})
2035 unlet $VAR1 2035 unlet $VAR1
2036 endfunc 2036 endfunc
2037 2037
2038 func Test_job_trailing_space_unix()
2039 CheckUnix
2040 CheckExecutable cat
2041 let job = job_start("cat ", #{in_io: 'null'})
2042 call WaitForAssert({-> assert_equal("dead", job_status(job))})
2043 call assert_equal(0, job_info(job).exitval)
2044 endfunc
2045
2038 " vim: shiftwidth=2 sts=2 expandtab 2046 " vim: shiftwidth=2 sts=2 expandtab