]> granicus.if.org Git - vim/commitdiff
patch 8.2.2587: recover test fails on FreeBSD v8.2.2587
authorBram Moolenaar <Bram@vim.org>
Wed, 10 Mar 2021 20:46:39 +0000 (21:46 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 10 Mar 2021 20:46:39 +0000 (21:46 +0100)
Problem:    Recover test fails on FreeBSD.
Solution:   Check for Linux.

src/testdir/check.vim
src/testdir/test_recover.vim
src/version.c

index e5298bc5309bde80e02adacac14ab3ae5b8a3f25..db16cfb7d9cc35d5076d151bfb7c2c0ccd5fdd2a 100644 (file)
@@ -84,8 +84,16 @@ func CheckUnix()
   endif
 endfunc
 
+" Command to check for running on Linix
+command CheckLinux call CheckLinux()
+func CheckLinux()
+  if !has('linux')
+    throw 'Skipped: only works on Linux'
+  endif
+endfunc
+
 " Command to check for not running on a BSD system.
-" TODO: using this checks should not be needed
+" TODO: using this check should not be needed
 command CheckNotBSD call CheckNotBSD()
 func CheckNotBSD()
   if has('bsd')
index 621e3152c7a4d9842d316a8ebcad4468a55b6c58..28676632c575e707e8f158ed08cc7ab8723c040a 100644 (file)
@@ -79,8 +79,9 @@ func Test_swap_file()
 endfunc
 
 func Test_nocatch_process_still_running()
-  " assume Unix means sysinfo.uptime can be used
-  CheckUnix
+  " sysinfo.uptime probably only works on Linux
+  CheckLinux
+  " the GUI dialog can't be handled
   CheckNotGui
 
   " don't intercept existing swap file here
index b624a71e13c1cd93341c63ff8aad29a703308863..df8d2f917b219c0927a910ab0db0fa6654440052 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2587,
 /**/
     2586,
 /**/