aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-03 22:47:38 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-03 22:47:52 -0500
commit25613fa65bf1c3bbe2b675ff273acb94f47656bc (patch)
tree46981162c42f99d2d45c4d807e52e9fd745cddad
parenta2554858df533fcfa0ba6074648e21cda50934d9 (diff)
downloadrneovim-25613fa65bf1c3bbe2b675ff273acb94f47656bc.tar.gz
rneovim-25613fa65bf1c3bbe2b675ff273acb94f47656bc.tar.bz2
rneovim-25613fa65bf1c3bbe2b675ff273acb94f47656bc.zip
vim-patch:8.1.0842: getchar_zero test fails on MS-Windows
Problem: getchar_zero test fails on MS-Windows. Solution: Disable the test for now. https://github.com/vim/vim/commit/cb908a813cebf7fb4608ff43fc3d258cf2768809
-rw-r--r--src/nvim/testdir/test_timers.vim11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_timers.vim b/src/nvim/testdir/test_timers.vim
index 161a89c38c..e4d9329ac6 100644
--- a/src/nvim/testdir/test_timers.vim
+++ b/src/nvim/testdir/test_timers.vim
@@ -254,13 +254,20 @@ func Test_peek_and_get_char()
endfunc
func Test_getchar_zero()
- call timer_start(20, {id -> feedkeys('x', 'L')})
+ if has('win32')
+ " Console: no low-level input
+ " GUI: somehow doesn't work
+ return
+ endif
+
+ let id = timer_start(20, {id -> feedkeys('x', 'L')})
let c = 0
while c == 0
let c = getchar(0)
sleep 10m
endwhile
call assert_equal('x', nr2char(c))
+ call timer_stop(id)
endfunc
func Test_ex_mode()
@@ -268,7 +275,7 @@ func Test_ex_mode()
func Foo(...)
endfunc
- let timer = timer_start(40, function('g:Foo'), {'repeat':-1})
+ let timer = timer_start(40, function('g:Foo'), {'repeat':-1})
" This used to throw error E749.
exe "normal Qsleep 100m\rvi\r"
call timer_stop(timer)