mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
Merge pull request #5038 from prollings/vim-7.4.1477
vim-patch:7.4.1477
This commit is contained in:
@@ -47,6 +47,25 @@ lang mess C
|
|||||||
" Always use forward slashes.
|
" Always use forward slashes.
|
||||||
set shellslash
|
set shellslash
|
||||||
|
|
||||||
|
function RunTheTest(test)
|
||||||
|
echo 'Executing ' . test
|
||||||
|
if exists("*SetUp")
|
||||||
|
call SetUp()
|
||||||
|
endif
|
||||||
|
|
||||||
|
call add(s:messages, 'Executing ' . test)
|
||||||
|
let s:done += 1
|
||||||
|
try
|
||||||
|
exe 'call ' . test
|
||||||
|
catch
|
||||||
|
call add(v:errors, 'Caught exception in ' . test . ': ' . v:exception . ' @ ' . v:throwpoint)
|
||||||
|
endtry
|
||||||
|
|
||||||
|
if exists("*TearDown")
|
||||||
|
call TearDown()
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
" Source the test script. First grab the file name, in case the script
|
" Source the test script. First grab the file name, in case the script
|
||||||
" navigates away.
|
" navigates away.
|
||||||
let testname = expand('%')
|
let testname = expand('%')
|
||||||
@@ -66,6 +85,9 @@ else
|
|||||||
endtry
|
endtry
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Names of flaky tests.
|
||||||
|
let s:flaky = []
|
||||||
|
|
||||||
" Locate Test_ functions and execute them.
|
" Locate Test_ functions and execute them.
|
||||||
set nomore
|
set nomore
|
||||||
redir @q
|
redir @q
|
||||||
@@ -80,19 +102,13 @@ endif
|
|||||||
|
|
||||||
" Execute the tests in alphabetical order.
|
" Execute the tests in alphabetical order.
|
||||||
for test in sort(tests)
|
for test in sort(tests)
|
||||||
echo 'Executing ' . test
|
call RunTheTest(test)
|
||||||
if exists("*SetUp")
|
|
||||||
call SetUp()
|
|
||||||
endif
|
|
||||||
|
|
||||||
call add(messages, 'Executing ' . test)
|
if len(v:errors) > 0 && index(flaky, test) >= 0
|
||||||
let done += 1
|
call add(messages, 'Flaky test failed, running it again')
|
||||||
try
|
let v:errors = []
|
||||||
exe 'call ' . test
|
call RunTheTest(test)
|
||||||
catch
|
endif
|
||||||
let fail += 1
|
|
||||||
call add(v:errors, 'Caught exception in ' . test . ': ' . v:exception . ' @ ' . v:throwpoint)
|
|
||||||
endtry
|
|
||||||
|
|
||||||
if len(v:errors) > 0
|
if len(v:errors) > 0
|
||||||
let fail += 1
|
let fail += 1
|
||||||
@@ -101,9 +117,6 @@ for test in sort(tests)
|
|||||||
let v:errors = []
|
let v:errors = []
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if exists("*TearDown")
|
|
||||||
call TearDown()
|
|
||||||
endif
|
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
if fail == 0
|
if fail == 0
|
||||||
|
@@ -966,7 +966,7 @@ static int included_patches[] = {
|
|||||||
1480,
|
1480,
|
||||||
1479,
|
1479,
|
||||||
1478,
|
1478,
|
||||||
// 1477,
|
1477,
|
||||||
// 1476 NA
|
// 1476 NA
|
||||||
// 1475 NA
|
// 1475 NA
|
||||||
// 1474 NA
|
// 1474 NA
|
||||||
|
Reference in New Issue
Block a user