mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 05:35:10 -07:00
vim-patch:8.0.0088 (#7080)
Problem: When a test fails in Setup or Teardown the problem is not reported.
Solution: Add a try/catch. (Hirohito Higashi)
cc28e2d05d
This commit is contained in:
parent
861ba1ddd4
commit
8eb54c5dec
@ -79,7 +79,11 @@ let $NVIM_LOG_FILE = exists($NVIM_LOG_FILE) ? $NVIM_LOG_FILE : 'Xnvim.log'
|
|||||||
func RunTheTest(test)
|
func RunTheTest(test)
|
||||||
echo 'Executing ' . a:test
|
echo 'Executing ' . a:test
|
||||||
if exists("*SetUp")
|
if exists("*SetUp")
|
||||||
|
try
|
||||||
call SetUp()
|
call SetUp()
|
||||||
|
catch
|
||||||
|
call add(v:errors, 'Caught exception in SetUp() before ' . a:test . ': ' . v:exception . ' @ ' . v:throwpoint)
|
||||||
|
endtry
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call add(s:messages, 'Executing ' . a:test)
|
call add(s:messages, 'Executing ' . a:test)
|
||||||
@ -94,7 +98,11 @@ func RunTheTest(test)
|
|||||||
endtry
|
endtry
|
||||||
|
|
||||||
if exists("*TearDown")
|
if exists("*TearDown")
|
||||||
|
try
|
||||||
call TearDown()
|
call TearDown()
|
||||||
|
catch
|
||||||
|
call add(v:errors, 'Caught exception in TearDown() after ' . a:test . ': ' . v:exception . ' @ ' . v:throwpoint)
|
||||||
|
endtry
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Close any extra windows and make the current one not modified.
|
" Close any extra windows and make the current one not modified.
|
||||||
|
@ -641,7 +641,7 @@ static const int included_patches[] = {
|
|||||||
// 91,
|
// 91,
|
||||||
// 90,
|
// 90,
|
||||||
// 89 NA
|
// 89 NA
|
||||||
// 88,
|
88,
|
||||||
// 87 NA
|
// 87 NA
|
||||||
// 86,
|
// 86,
|
||||||
85,
|
85,
|
||||||
|
Loading…
Reference in New Issue
Block a user