changeset 14258:71bb93bf9a44 v8.1.0145

patch 8.1.0145: test with grep is failing on MS-Windows commit https://github.com/vim/vim/commit/851332ea9cdabf24980a7f7c293da81fa990f864 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 3 19:16:00 2018 +0200 patch 8.1.0145: test with grep is failing on MS-Windows Problem: Test with grep is failing on MS-Windows. Solution: Skip the test.
author Christian Brabandt <cb@256bit.org>
date Tue, 03 Jul 2018 19:30:07 +0200
parents 2d81cd3925d2
children 73bc88f9115f
files src/testdir/test_quickfix.vim src/version.c
diffstat 2 files changed, 13 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_quickfix.vim
+++ b/src/testdir/test_quickfix.vim
@@ -3457,14 +3457,17 @@ func Xautocmd_changelist(cchar)
   call assert_equal(4, line('.'))
   autocmd! QuickFixCmdPost
 
-  " Test for grep/lgrep
-  call g:Xsetlist([], 'f')
-  Xexpr 'Xtestfile1:2:Line2'
-  autocmd QuickFixCmdPost * Xolder
-  silent Xgrep Line5 Xtestfile2
-  call assert_equal('Xtestfile2', bufname(''))
-  call assert_equal(5, line('.'))
-  autocmd! QuickFixCmdPost
+  " The grepprg may not be set on non-Unix systems
+  if has('unix')
+    " Test for grep/lgrep
+    call g:Xsetlist([], 'f')
+    Xexpr 'Xtestfile1:2:Line2'
+    autocmd QuickFixCmdPost * Xolder
+    silent Xgrep Line5 Xtestfile2
+    call assert_equal('Xtestfile2', bufname(''))
+    call assert_equal(5, line('.'))
+    autocmd! QuickFixCmdPost
+  endif
 
   " Test for vimgrep/lvimgrep
   call g:Xsetlist([], 'f')
--- a/src/version.c
+++ b/src/version.c
@@ -790,6 +790,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    145,
+/**/
     144,
 /**/
     143,