changeset 25961:a21a47c83e0c v8.2.3514

patch 8.2.3514: autoread test with nano second time sometimes fails Commit: https://github.com/vim/vim/commit/eaa006dae3d5730e3b6dead27905444998b2cf8e Author: Bram Moolenaar <Bram@vim.org> Date: Fri Oct 15 17:09:50 2021 +0100 patch 8.2.3514: autoread test with nano second time sometimes fails Problem: Autoread test with nano second time sometimes fails. Solution: Mark the test as being flaky.
author Bram Moolenaar <Bram@vim.org>
date Fri, 15 Oct 2021 18:15:03 +0200
parents 496705b112f7
children b3b48a61ff18
files src/testdir/test_stat.vim src/version.c
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_stat.vim
+++ b/src/testdir/test_stat.vim
@@ -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 assert_equal('bar', trim(getline(1)))
   call delete('Xautoread')
 endfunc
 
--- 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 */
 /**/
+    3514,
+/**/
     3513,
 /**/
     3512,