]> granicus.if.org Git - vim/commitdiff
patch 8.1.0842: getchar_zero test fails on MS-Windows v8.1.0842
authorBram Moolenaar <Bram@vim.org>
Mon, 28 Jan 2019 22:20:04 +0000 (23:20 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 28 Jan 2019 22:20:04 +0000 (23:20 +0100)
Problem:    getchar_zero test fails on MS-Windows.
Solution:   Disable the test for now.

src/testdir/test_timers.vim
src/version.c

index 0b88d8af23ff084f59bbf4debfba2e4bb2a19c67..2cea3e47dacb060f5f24feb3737d48731451aefc 100644 (file)
@@ -251,13 +251,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()
@@ -265,7 +272,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)
index a90d52e66744fe1eb06eb975678e55528868a970..c8bb2f7de66cd4de659366e36ed5f411d815246d 100644 (file)
@@ -783,6 +783,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    842,
 /**/
     841,
 /**/