changeset 19611:db60620b7afb v8.2.0362

patch 8.2.0362: MS-Windows: channel test fails if grep is not available Commit: https://github.com/vim/vim/commit/d0d440f702d1c6fef36386f8b91d074d0f3e4718 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 7 17:24:59 2020 +0100 patch 8.2.0362: MS-Windows: channel test fails if grep is not available Problem: MS-Windows: channel test fails if grep is not available. Solution: Use another command. (Ken Takata, closes https://github.com/vim/vim/issues/5739)
author Bram Moolenaar <Bram@vim.org>
date Sat, 07 Mar 2020 17:30:03 +0100
parents 6eb401ee4b0c
children a70ee453358e
files src/testdir/test_channel.vim src/version.c
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    362,
+/**/
     361,
 /**/
     360,