summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-24 22:47:31 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-24 22:47:31 +0200
commit9d8d0b5c644ea53364d04403740b3f23e57c1497 (patch)
tree615f9b058821039f8ae1c2cba3f3837500ecc42b /src/testdir/test_channel.vim
parent92c461ef1b3b58c7dd4835bc881769f0f84e8ad0 (diff)
patch 8.2.0633: crash when using null partial in filter()v8.2.0633
Problem: Crash when using null partial in filter(). Solution: Fix crash. Add more tests. (Yegappan Lakshmanan, closes #5976)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r--src/testdir/test_channel.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim
index cf51a536b5..9c51c640d6 100644
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -1203,6 +1203,7 @@ func Test_out_cb()
\ 'err_cb': dict.errHandler,
\ 'err_mode': 'json'})
call assert_equal("run", job_status(job))
+ call test_garbagecollect_now()
try
let g:Ch_outmsg = ''
let g:Ch_errmsg = ''
@@ -1818,6 +1819,7 @@ func Test_read_nonl_in_close_cb()
let g:out = ''
let arg = 'import sys;sys.stdout.write("1\n2\n3")'
call job_start([s:python, '-c', arg], {'close_cb': function('s:close_cb')})
+ call test_garbagecollect_now()
call WaitForAssert({-> assert_equal('123', g:out)})
unlet g:out
delfunc s:close_cb
@@ -1828,6 +1830,7 @@ func Test_read_from_terminated_job()
let arg = 'import os,sys;os.close(1);sys.stderr.write("test\n")'
call job_start([s:python, '-c', arg], {'callback': {-> execute('let g:linecount += 1')}})
call WaitForAssert({-> assert_equal(1, g:linecount)})
+ call test_garbagecollect_now()
unlet g:linecount
endfunc