]> granicus.if.org Git - vim/commitdiff
patch 8.1.0145: test with grep is failing on MS-Windows v8.1.0145
authorBram Moolenaar <Bram@vim.org>
Tue, 3 Jul 2018 17:16:00 +0000 (19:16 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 3 Jul 2018 17:16:00 +0000 (19:16 +0200)
Problem:    Test with grep is failing on MS-Windows.
Solution:   Skip the test.

src/testdir/test_quickfix.vim
src/version.c

index 5e8b993962de6e4ed56e7c916f50a28637da5971..a4006b07d1cab61001b755abfabf22a9bb30897c 100644 (file)
@@ -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')
index 07e34fc37f31907d09fbd712f39aa19d233e04cc..ea289c7ec7bee7f7aaf3befd4360d2d9ffc6ee6f 100644 (file)
@@ -789,6 +789,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    145,
 /**/
     144,
 /**/