mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:9.0.0019: timers test not run where possible
Problem: Timers test not run where possible.
Solution: Adjust platform checks. (closes vim/vim#10645)
eb273cd7b0
Cherry-pick a line from patch 8.2.0183.
This commit is contained in:
@@ -263,8 +263,9 @@ func Interrupt(timer)
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_timer_peek_and_get_char()
|
func Test_timer_peek_and_get_char()
|
||||||
CheckUnix
|
if !has('unix') && !has('gui_running')
|
||||||
CheckGui
|
throw 'Skipped: cannot feed low-level input'
|
||||||
|
endif
|
||||||
|
|
||||||
call timer_start(0, 'FeedAndPeek')
|
call timer_start(0, 'FeedAndPeek')
|
||||||
let intr = timer_start(100, 'Interrupt')
|
let intr = timer_start(100, 'Interrupt')
|
||||||
@@ -275,8 +276,9 @@ endfunc
|
|||||||
|
|
||||||
func Test_timer_getchar_zero()
|
func Test_timer_getchar_zero()
|
||||||
if has('win32') && !has('gui_running')
|
if has('win32') && !has('gui_running')
|
||||||
throw 'Skipped: cannot get low-level input'
|
throw 'Skipped: cannot feed low-level input'
|
||||||
endif
|
endif
|
||||||
|
CheckFunction reltimefloat
|
||||||
|
|
||||||
" Measure the elapsed time to avoid a hang when it fails.
|
" Measure the elapsed time to avoid a hang when it fails.
|
||||||
let start = reltime()
|
let start = reltime()
|
||||||
|
Reference in New Issue
Block a user