]> granicus.if.org Git - vim/commitdiff
patch 8.2.3514: autoread test with nano second time sometimes fails v8.2.3514
authorBram Moolenaar <Bram@vim.org>
Fri, 15 Oct 2021 16:09:50 +0000 (17:09 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 15 Oct 2021 16:09:50 +0000 (17:09 +0100)
Problem:    Autoread test with nano second time sometimes fails.
Solution:   Mark the test as being flaky.

src/testdir/test_stat.vim
src/version.c

index 38ced6d37e97fe21bda68d8cf5eb17f26d754c4a..fa61c5c0639229807c53cfac4a7c4488a7abfc41 100644 (file)
@@ -97,16 +97,18 @@ endfunc
 func Test_autoread_fast()
   CheckFeature nanotime
 
+  " this is timing sensitive
+  let g:test_is_flaky = 1
+
   new Xautoread
-  set autoread
+  setlocal autoread
   call setline(1, 'foo')
-
   w!
   silent !echo bar > Xautoread
   sleep 10m
   checktime
-
   call assert_equal('bar', trim(getline(1)))
+
   call delete('Xautoread')
 endfunc
 
index d6b4c88312029794fb7e7dd282191183c081027a..f7ebc702b17b30c417e03bf81f8eb85947ea2488 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3514,
 /**/
     3513,
 /**/