diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-10-12 22:15:12 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-10-12 22:15:12 +0200 |
commit | 453ce7c16b1001f23f2281b259176c6a00d82999 (patch) | |
tree | bd76624e92c30cc7c802ff6af0f2b5f204f6c20e /src/testdir/test_channel.vim | |
parent | 3d6014f0336d9a64c01a7518fe45fde0a925fa20 (diff) | |
download | vim-git-453ce7c16b1001f23f2281b259176c6a00d82999.tar.gz |
patch 8.1.0471: some tests are flaky or fail on some systemsv8.1.0471
Problem: Some tests are flaky or fail on some systems.
Solution: Increase waiting time for port number. Use "cmd /c" to execute
"echo" on win32. (Ken Takata, closes #3534)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r-- | src/testdir/test_channel.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index 832f54e7c..072bbe028 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -1340,7 +1340,7 @@ func Test_close_and_exit_cb() let self.ret['exit_cb'] = job_status(a:job) endfunc - let g:job = job_start('echo', { + let g:job = job_start(has('win32') ? 'cmd /c echo:' : 'echo', { \ 'close_cb': g:retdict.close_cb, \ 'exit_cb': g:retdict.exit_cb, \ }) @@ -1369,7 +1369,8 @@ func Test_exit_cb_wipes_buf() new let g:wipe_buf = bufnr('') - let job = job_start(['true'], {'exit_cb': 'ExitCbWipe'}) + let job = job_start(has('win32') ? 'cmd /c echo:' : ['true'], + \ {'exit_cb': 'ExitCbWipe'}) let timer = timer_start(300, {-> feedkeys("\<Esc>", 'nt')}, {'repeat': 5}) call feedkeys(repeat('g', 1000) . 'o', 'ntx!') call WaitForAssert({-> assert_equal("dead", job_status(job))}) |