]> granicus.if.org Git - vim/commitdiff
patch 7.4.2281 v7.4.2281
authorBram Moolenaar <Bram@vim.org>
Sun, 28 Aug 2016 14:06:05 +0000 (16:06 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 28 Aug 2016 14:06:05 +0000 (16:06 +0200)
Problem:    Timer test fails sometimes.
Solution:   Reduce minimum time by 1 msec.

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

index 70a41e90fd77c01fa262d896075cb49a53af2175..152f72502152bb6a222947e04a4952bd61314f0f 100644 (file)
@@ -20,7 +20,7 @@ func Test_oneshot()
   let slept = WaitFor('g:val == 1')
   call assert_equal(1, g:val)
   if has('reltime')
-    call assert_inrange(50, 100, slept)
+    call assert_inrange(49, 100, slept)
   else
     call assert_inrange(20, 100, slept)
   endif
@@ -32,7 +32,7 @@ func Test_repeat_three()
   let slept = WaitFor('g:val == 3')
   call assert_equal(3, g:val)
   if has('reltime')
-    call assert_inrange(150, 250, slept)
+    call assert_inrange(149, 250, slept)
   else
     call assert_inrange(80, 200, slept)
   endif
@@ -57,7 +57,7 @@ func Test_with_partial_callback()
   let slept = WaitFor('g:val == 1')
   call assert_equal(1, g:val)
   if has('reltime')
-    call assert_inrange(50, 130, slept)
+    call assert_inrange(49, 130, slept)
   else
     call assert_inrange(20, 100, slept)
   endif
index 8bca417533133fcc1061da8206f9364de0f68e22..afe9c981cd77cfa9ca94a7375481b524b897d269 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2281,
 /**/
     2280,
 /**/