]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0019: timers test not run where possible v9.0.0019
authorzeertzjq <zeertzjq@outlook.com>
Fri, 1 Jul 2022 18:11:23 +0000 (19:11 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 1 Jul 2022 18:11:23 +0000 (19:11 +0100)
Problem:    Timers test not run where possible.
Solution:   Adjust platform checks. (closes #10645)

src/testdir/test_timers.vim
src/version.c

index 84fe05e557cd43ce41467acb510f5ee5bdeba9f0..7a5cc29f5ac0fa9434e946246e6b4ab7590d5636 100644 (file)
@@ -298,8 +298,9 @@ func Interrupt(timer)
 endfunc
 
 func Test_timer_peek_and_get_char()
-  CheckUnix
-  CheckGui
+  if !has('unix') && !has('gui_running')
+    throw 'Skipped: cannot feed low-level input'
+  endif
 
   call timer_start(0, 'FeedAndPeek')
   let intr = timer_start(100, 'Interrupt')
@@ -310,7 +311,7 @@ endfunc
 
 func Test_timer_getchar_zero()
   if has('win32') && !has('gui_running')
-    throw 'Skipped: cannot get low-level input'
+    throw 'Skipped: cannot feed low-level input'
   endif
   CheckFunction reltimefloat
 
index 6415b59caf328e2df309fcee092173e687d83d1c..42e9135e1f6d09cda0cbee80326ee3ab746bad9a 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    19,
 /**/
     18,
 /**/