changeset 15669:d2ec272ae777 v8.1.0842

patch 8.1.0842: getchar_zero test fails on MS-Windows commit https://github.com/vim/vim/commit/cb908a813cebf7fb4608ff43fc3d258cf2768809 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 28 23:20:04 2019 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Mon, 28 Jan 2019 23:30:05 +0100
parents 125147ceb8d5
children 6346be214250
files src/testdir/test_timers.vim src/version.c
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_timers.vim
+++ b/src/testdir/test_timers.vim
@@ -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)
--- a/src/version.c
+++ b/src/version.c
@@ -784,6 +784,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    842,
+/**/
     841,
 /**/
     840,