1
0
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:
Bram Moolenaar
2016-08-06 19:16:43 +02:00
parent 66459b7c98
commit 83b3c3d8a0
2 changed files with 14 additions and 11 deletions

View File

@@ -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')

View File

@@ -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,
/**/ /**/