summaryrefslogtreecommitdiff
path: root/src/testdir/runtest.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-03-10 22:27:48 +0100
committerBram Moolenaar <Bram@vim.org>2021-03-10 22:27:48 +0100
commit776b954622b45125dfdcb4a61243ca90956b0825 (patch)
treebb8c37ef85c09c71c7fb213070f0a64fc4805800 /src/testdir/runtest.vim
parent23b32a8d6bd9ec83c0c6632b7a8bfa544ac0a2f1 (diff)
downloadvim-git-776b954622b45125dfdcb4a61243ca90956b0825.tar.gz
patch 8.2.2589: recover test hangs in the GUIv8.2.2589
Problem: Recover test hangs in the GUI. Solution: Add g:skipped_reason to skip a _nocatch_ test.
Diffstat (limited to 'src/testdir/runtest.vim')
-rw-r--r--src/testdir/runtest.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim
index 369d931f1..4602051a7 100644
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -196,7 +196,12 @@ func RunTheTest(test)
if a:test =~ 'Test_nocatch_'
" Function handles errors itself. This avoids skipping commands after the
" error.
+ let g:skipped_reason = ''
exe 'call ' . a:test
+ if g:skipped_reason != ''
+ call add(s:messages, ' Skipped')
+ call add(s:skipped, 'SKIPPED ' . a:test . ': ' . g:skipped_reason)
+ endif
else
try
au VimLeavePre * call EarlyExit(g:testfunc)