diff src/testdir/runtest.vim @ 24095:467c3022fba6 v8.2.2589

patch 8.2.2589: recover test hangs in the GUI Commit: https://github.com/vim/vim/commit/776b954622b45125dfdcb4a61243ca90956b0825 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 10 22:27:48 2021 +0100 patch 8.2.2589: recover test hangs in the GUI Problem: Recover test hangs in the GUI. Solution: Add g:skipped_reason to skip a _nocatch_ test.
author Bram Moolenaar <Bram@vim.org>
date Wed, 10 Mar 2021 22:30:03 +0100
parents 47a5349168ea
children 9f64c420f280
line wrap: on
line diff
--- 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)