summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-23 18:14:56 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-23 18:14:56 +0100
commitf637bceb6135139dc1891a15de8fa134c2ca2d97 (patch)
tree8ea764a485d7cbcb4838b65aed8f7995ab7cfbdf /src/testdir/test_channel.vim
parent792f786aad8409ca9ab895392742643a5b6aed8f (diff)
patch 8.2.2035: MS-Windows: some tests may failv8.2.2035
Problem: MS-Windows: some tests may fail. Solution: Avoid test failures. (Yegappan Lakshmanan, closes #7346)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r--src/testdir/test_channel.vim10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim
index 90d828bdb3..e9cc258f04 100644
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -2304,8 +2304,14 @@ endfunc
func Test_cb_with_input()
let g:wait_exit_cb = 1
- call job_start('echo "Vim''s test"',
- \ {'out_cb': 'ExitCb_cb_with_input'})
+ if has('win32')
+ let cmd = 'cmd /c echo "Vim''s test"'
+ else
+ let cmd = 'echo "Vim''s test"'
+ endif
+
+ let job = job_start(cmd, {'out_cb': 'ExitCb_cb_with_input'})
+ call WaitFor({-> job_status(job) == "dead"})
call WaitForAssert({-> assert_equal(0, g:wait_exit_cb)})
unlet g:wait_exit_cb