forked from aniani/vim
patch 7.4.2165
Problem: Startup test fails on MS-Windows. Solution: Don't check output if RunVim() returns zero.
This commit is contained in:
@@ -36,19 +36,20 @@ func Test_after_comes_later()
|
|||||||
call mkdir('Xafter/plugin', 'p')
|
call mkdir('Xafter/plugin', 'p')
|
||||||
call writefile(['let done = 1'], 'Xafter/plugin/later.vim')
|
call writefile(['let done = 1'], 'Xafter/plugin/later.vim')
|
||||||
|
|
||||||
call RunVim(before, after)
|
if RunVim(before, after)
|
||||||
|
|
||||||
let lines = readfile('Xtestout')
|
let lines = readfile('Xtestout')
|
||||||
let expected = ['Xbefore.vim', 'here.vim', 'foo.vim', 'later.vim', 'Xafter.vim']
|
let expected = ['Xbefore.vim', 'here.vim', 'foo.vim', 'later.vim', 'Xafter.vim']
|
||||||
let found = []
|
let found = []
|
||||||
for line in lines
|
for line in lines
|
||||||
for one in expected
|
for one in expected
|
||||||
if line =~ one
|
if line =~ one
|
||||||
call add(found, one)
|
call add(found, one)
|
||||||
endif
|
endif
|
||||||
|
endfor
|
||||||
endfor
|
endfor
|
||||||
endfor
|
call assert_equal(expected, found)
|
||||||
call assert_equal(expected, found)
|
endif
|
||||||
|
|
||||||
call delete('Xtestout')
|
call delete('Xtestout')
|
||||||
call delete('Xhere', 'rf')
|
call delete('Xhere', 'rf')
|
||||||
|
@@ -763,6 +763,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2165,
|
||||||
/**/
|
/**/
|
||||||
2164,
|
2164,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user