]> granicus.if.org Git - vim/commitdiff
patch 8.2.3534: autoread test is a bit flaky v8.2.3534
authorBram Moolenaar <Bram@vim.org>
Mon, 18 Oct 2021 13:37:13 +0000 (14:37 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 18 Oct 2021 13:37:13 +0000 (14:37 +0100)
Problem:    Autoread test is a bit flaky.
Solution:   Wait a brief moment before overwriting the file.

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

index fa61c5c0639229807c53cfac4a7c4488a7abfc41..de4a204f5d7367dc28cb925fa62a49b0088e80d0 100644 (file)
@@ -104,7 +104,8 @@ func Test_autoread_fast()
   setlocal autoread
   call setline(1, 'foo')
   w!
-  silent !echo bar > Xautoread
+  sleep 10m
+  call writefile(['bar'], 'Xautoread')
   sleep 10m
   checktime
   call assert_equal('bar', trim(getline(1)))
index b84aef5c6d6ebc0311ce290cd4e9fcc90ca33406..6599ae05af60e150e261ce2c500c1ac6e880a8be 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3534,
 /**/
     3533,
 /**/