summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-12-21 22:22:01 +0100
committerBram Moolenaar <Bram@vim.org>2019-12-21 22:22:01 +0100
commita27655ef6d0001c7c2265ea682455ec82acee826 (patch)
tree812e4e113247d61a80f3fbb0978c0c64a1cd4a7f /src/testdir/test_channel.vim
parent3ba35409a65b457d29a885a27b46b02a9aec6bcc (diff)
patch 8.2.0029: MS-Windows: crash with empty job commandv8.2.0029
Problem: MS-Windows: crash with empty job command. Solution: Check for NULL result. (Yasuhiro Matsumoto, closes #5390)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r--src/testdir/test_channel.vim13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim
index 17cdb7cac0..24a7ae454f 100644
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -1331,14 +1331,12 @@ func Ch_close_handle(port)
endfunc
func Test_close_handle()
- call ch_log('Test_close_handle()')
call s:run_server('Ch_close_handle')
endfunc
""""""""""
func Test_open_fail()
- call ch_log('Test_open_fail()')
silent! let ch = ch_open("noserver")
echo ch
let d = ch
@@ -1360,7 +1358,6 @@ func Ch_open_delay(port)
endfunc
func Test_open_delay()
- call ch_log('Test_open_delay()')
" The server will wait half a second before creating the port.
call s:run_server('Ch_open_delay', 'delay')
endfunc
@@ -1384,7 +1381,6 @@ function Ch_test_call(port)
endfunc
func Test_call()
- call ch_log('Test_call()')
call s:run_server('Ch_test_call')
endfunc
@@ -1473,7 +1469,6 @@ function Ch_test_close_callback(port)
endfunc
func Test_close_callback()
- call ch_log('Test_close_callback()')
call s:run_server('Ch_test_close_callback')
endfunc
@@ -1495,7 +1490,6 @@ function Ch_test_close_partial(port)
endfunc
func Test_close_partial()
- call ch_log('Test_close_partial()')
call s:run_server('Ch_test_close_partial')
endfunc
@@ -1712,7 +1706,6 @@ function Ch_test_close_lambda(port)
endfunc
func Test_close_lambda()
- call ch_log('Test_close_lambda()')
call s:run_server('Ch_test_close_lambda')
endfunc
@@ -1965,6 +1958,12 @@ func Test_zz_nl_err_to_out_pipe()
endtry
endfunc
+func Test_empty_job()
+ " This was crashing on MS-Windows.
+ let job = job_start([""])
+ call WaitForAssert({-> assert_equal("dead", job_status(job))})
+endfunc
+
" Do this last, it stops any channel log.
func Test_zz_ch_log()
call ch_logfile('Xlog', 'w')