changeset 26002:c45e990847e5

patch 8.2.3534: autoread test is a bit flaky Commit: https://github.com/vim/vim/commit/944eeb44fb6e9d6d28474a1348d27c07873892f9 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 18 14:37:13 2021 +0100 patch 8.2.3534: autoread test is a bit flaky Problem: Autoread test is a bit flaky. Solution: Wait a brief moment before overwriting the file.
author Bram Moolenaar <Bram@vim.org>
date Mon, 18 Oct 2021 15:45:04 +0200
parents 9be59f48e627
children 37852c2bf3d4
files src/testdir/test_stat.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_stat.vim
+++ b/src/testdir/test_stat.vim
@@ -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)))
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3534,
+/**/
     3533,
 /**/
     3532,