summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-07 17:24:59 +0100
committerBram Moolenaar <Bram@vim.org>2020-03-07 17:24:59 +0100
commitd0d440f702d1c6fef36386f8b91d074d0f3e4718 (patch)
tree5cd910694e36b8f245a0b6bccdae289552cc5bac /src/testdir/test_channel.vim
parent14e57909e662a43a42438e2701654af48af49b03 (diff)
patch 8.2.0362: MS-Windows: channel test fails if grep is not availablev8.2.0362
Problem: MS-Windows: channel test fails if grep is not available. Solution: Use another command. (Ken Takata, closes #5739)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r--src/testdir/test_channel.vim11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim
index c98f5bd683..e1f8a5e352 100644
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -1992,15 +1992,20 @@ func Test_job_start_fails()
endfunc
func Test_issue_5150()
- let g:job = job_start('grep foo', {})
+ if has('win32')
+ let cmd = 'cmd /c pause'
+ else
+ let cmd = 'grep foo'
+ endif
+ let g:job = job_start(cmd, {})
call job_stop(g:job)
sleep 10m
call assert_equal(-1, job_info(g:job).exitval)
- let g:job = job_start('grep foo', {})
+ let g:job = job_start(cmd, {})
call job_stop(g:job, 'term')
sleep 10m
call assert_equal(-1, job_info(g:job).exitval)
- let g:job = job_start('grep foo', {})
+ let g:job = job_start(cmd, {})
call job_stop(g:job, 'kill')
sleep 10m
call assert_equal(-1, job_info(g:job).exitval)