Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
24094:c05b22a0905b | 24095:467c3022fba6 |
---|---|
194 endif | 194 endif |
195 | 195 |
196 if a:test =~ 'Test_nocatch_' | 196 if a:test =~ 'Test_nocatch_' |
197 " Function handles errors itself. This avoids skipping commands after the | 197 " Function handles errors itself. This avoids skipping commands after the |
198 " error. | 198 " error. |
199 let g:skipped_reason = '' | |
199 exe 'call ' . a:test | 200 exe 'call ' . a:test |
201 if g:skipped_reason != '' | |
202 call add(s:messages, ' Skipped') | |
203 call add(s:skipped, 'SKIPPED ' . a:test . ': ' . g:skipped_reason) | |
204 endif | |
200 else | 205 else |
201 try | 206 try |
202 au VimLeavePre * call EarlyExit(g:testfunc) | 207 au VimLeavePre * call EarlyExit(g:testfunc) |
203 exe 'call ' . a:test | 208 exe 'call ' . a:test |
204 au! VimLeavePre | 209 au! VimLeavePre |