Skip to content

Commit 851332e

Browse files
committed
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.
1 parent b2e0c94 commit 851332e

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

src/testdir/test_quickfix.vim

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3457,14 +3457,17 @@ func Xautocmd_changelist(cchar)
34573457
call assert_equal(4, line('.'))
34583458
autocmd! QuickFixCmdPost
34593459

3460-
" Test for grep/lgrep
3461-
call g:Xsetlist([], 'f')
3462-
Xexpr 'Xtestfile1:2:Line2'
3463-
autocmd QuickFixCmdPost * Xolder
3464-
silent Xgrep Line5 Xtestfile2
3465-
call assert_equal('Xtestfile2', bufname(''))
3466-
call assert_equal(5, line('.'))
3467-
autocmd! QuickFixCmdPost
3460+
" The grepprg may not be set on non-Unix systems
3461+
if has('unix')
3462+
" Test for grep/lgrep
3463+
call g:Xsetlist([], 'f')
3464+
Xexpr 'Xtestfile1:2:Line2'
3465+
autocmd QuickFixCmdPost * Xolder
3466+
silent Xgrep Line5 Xtestfile2
3467+
call assert_equal('Xtestfile2', bufname(''))
3468+
call assert_equal(5, line('.'))
3469+
autocmd! QuickFixCmdPost
3470+
endif
34683471

34693472
" Test for vimgrep/lvimgrep
34703473
call g:Xsetlist([], 'f')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,8 @@ static char *(features[]) =
789789

790790
static int included_patches[] =
791791
{ /* Add new patch number below this line */
792+
/**/
793+
145,
792794
/**/
793795
144,
794796
/**/

0 commit comments

Comments
 (0)