Skip to content

Commit eb273cd

Browse files
zeertzjqbrammool
authored andcommitted
patch 9.0.0019: timers test not run where possible
Problem: Timers test not run where possible. Solution: Adjust platform checks. (closes #10645)
1 parent 0d878b9 commit eb273cd

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/testdir/test_timers.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,9 @@ func Interrupt(timer)
298298
endfunc
299299

300300
func Test_timer_peek_and_get_char()
301-
CheckUnix
302-
CheckGui
301+
if !has('unix') && !has('gui_running')
302+
throw 'Skipped: cannot feed low-level input'
303+
endif
303304

304305
call timer_start(0, 'FeedAndPeek')
305306
let intr = timer_start(100, 'Interrupt')
@@ -310,7 +311,7 @@ endfunc
310311

311312
func Test_timer_getchar_zero()
312313
if has('win32') && !has('gui_running')
313-
throw 'Skipped: cannot get low-level input'
314+
throw 'Skipped: cannot feed low-level input'
314315
endif
315316
CheckFunction reltimefloat
316317

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,8 @@ static char *(features[]) =
735735

736736
static int included_patches[] =
737737
{ /* Add new patch number below this line */
738+
/**/
739+
19,
738740
/**/
739741
18,
740742
/**/

0 commit comments

Comments
 (0)