diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-26 22:13:12 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-10-26 22:16:58 +0800 |
commit | 8f8205ffe43541ccd475835a06fc89c8d19299f5 (patch) | |
tree | 2d0138b3d3092052268c0446873a86ec3389f5d7 /src | |
parent | 157baef02636fed4a99ef401e470fee8c51ce852 (diff) | |
download | rneovim-8f8205ffe43541ccd475835a06fc89c8d19299f5.tar.gz rneovim-8f8205ffe43541ccd475835a06fc89c8d19299f5.tar.bz2 rneovim-8f8205ffe43541ccd475835a06fc89c8d19299f5.zip |
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)
https://github.com/vim/vim/commit/eb273cd7b036c35ae9070bd6352101914f273e71
Cherry-pick a line from patch 8.2.0183.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_timers.vim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_timers.vim b/src/nvim/testdir/test_timers.vim index 135bd2bcdd..3a6abb3968 100644 --- a/src/nvim/testdir/test_timers.vim +++ b/src/nvim/testdir/test_timers.vim @@ -263,8 +263,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') @@ -275,8 +276,9 @@ 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 " Measure the elapsed time to avoid a hang when it fails. let start = reltime() |