aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKunMing Xie <qqzz014@gmail.com>2017-07-27 09:56:25 +0800
committerJustin M. Keyes <justinkz@gmail.com>2017-07-27 03:56:25 +0200
commit8eb54c5deca228fa5a34d22cb9f91d956eed773c (patch)
tree378463b765b07ba03234622f17742abc928c3afd
parent861ba1ddd4c922d222348671ee46f09afc165fcd (diff)
downloadrneovim-8eb54c5deca228fa5a34d22cb9f91d956eed773c.tar.gz
rneovim-8eb54c5deca228fa5a34d22cb9f91d956eed773c.tar.bz2
rneovim-8eb54c5deca228fa5a34d22cb9f91d956eed773c.zip
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) https://github.com/vim/vim/commit/cc28e2d05d05552d8b72a520be8a193f3d9822d4
-rw-r--r--src/nvim/testdir/runtest.vim12
-rw-r--r--src/nvim/version.c2
2 files changed, 11 insertions, 3 deletions
diff --git a/src/nvim/testdir/runtest.vim b/src/nvim/testdir/runtest.vim
index 117ba52eb6..39ffabc024 100644
--- a/src/nvim/testdir/runtest.vim
+++ b/src/nvim/testdir/runtest.vim
@@ -79,7 +79,11 @@ let $NVIM_LOG_FILE = exists($NVIM_LOG_FILE) ? $NVIM_LOG_FILE : 'Xnvim.log'
func RunTheTest(test)
echo 'Executing ' . a:test
if exists("*SetUp")
- call SetUp()
+ try
+ call SetUp()
+ catch
+ call add(v:errors, 'Caught exception in SetUp() before ' . a:test . ': ' . v:exception . ' @ ' . v:throwpoint)
+ endtry
endif
call add(s:messages, 'Executing ' . a:test)
@@ -94,7 +98,11 @@ func RunTheTest(test)
endtry
if exists("*TearDown")
- call TearDown()
+ try
+ call TearDown()
+ catch
+ call add(v:errors, 'Caught exception in TearDown() after ' . a:test . ': ' . v:exception . ' @ ' . v:throwpoint)
+ endtry
endif
" Close any extra windows and make the current one not modified.
diff --git a/src/nvim/version.c b/src/nvim/version.c
index d07a1c2d68..b585c3ad9a 100644
--- a/src/nvim/version.c
+++ b/src/nvim/version.c
@@ -641,7 +641,7 @@ static const int included_patches[] = {
// 91,
// 90,
// 89 NA
- // 88,
+ 88,
// 87 NA
// 86,
85,