changeset 29353:0c403f53b372 v9.0.0019

patch 9.0.0019: timers test not run where possible Commit: https://github.com/vim/vim/commit/eb273cd7b036c35ae9070bd6352101914f273e71 Author: zeertzjq <zeertzjq@outlook.com> Date: Fri Jul 1 19:11:23 2022 +0100 patch 9.0.0019: timers test not run where possible Problem: Timers test not run where possible. Solution: Adjust platform checks. (closes https://github.com/vim/vim/issues/10645)
author Bram Moolenaar <Bram@vim.org>
date Fri, 01 Jul 2022 20:15:03 +0200
parents 912224cab37f
children 3a49645302e6
files src/testdir/test_timers.vim src/version.c
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_timers.vim
+++ b/src/testdir/test_timers.vim
@@ -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
 
--- a/src/version.c
+++ b/src/version.c
@@ -736,6 +736,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    19,
+/**/
     18,
 /**/
     17,