summaryrefslogtreecommitdiffstats
path: root/src/testdir/runtest.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-30 13:32:09 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-30 13:32:09 +0000
commit1c67f3a9779b99bed7aacb3108abbb649445d3ed (patch)
treeb3a7f8af98a36076107aed71a4385b645e10d6d6 /src/testdir/runtest.vim
parent13789bf10338a0d049c78acfdc0870fc63e63f4f (diff)
patch 8.2.3946: when an internal error makes Vim exit the error is not seenv8.2.3946
Problem: When an internal error makes Vim exit the error is not seen. Solution: Add the error to the test output.
Diffstat (limited to 'src/testdir/runtest.vim')
-rw-r--r--src/testdir/runtest.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim
index 912bc20345..d4c42f332e 100644
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -304,6 +304,7 @@ endfunc
func EarlyExit(test)
" It's OK for the test we use to test the quit detection.
if a:test != 'Test_zz_quit_detected()'
+ call add(v:errors, v:errmsg)
call add(v:errors, 'Test caused Vim to exit: ' . a:test)
endif