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.
diff --git a/src/testdir/test_recover.vim b/src/testdir/test_recover.vim
index 2867663..a1ff7d9 100644
--- a/src/testdir/test_recover.vim
+++ b/src/testdir/test_recover.vim
@@ -80,9 +80,15 @@
func Test_nocatch_process_still_running()
" sysinfo.uptime probably only works on Linux
- CheckLinux
+ if !has('linux')
+ let g:skipped_reason = 'only works on Linux'
+ return
+ endif
" the GUI dialog can't be handled
- CheckNotGui
+ if has('gui_running')
+ let g:skipped_reason = 'only works in the terminal'
+ return
+ endif
" don't intercept existing swap file here
au! SwapExists