# HG changeset patch # User Bram Moolenaar # Date 1634314503 -7200 # Node ID a21a47c83e0c5ad98555dfb63718c06c4acdb30d # Parent 496705b112f7c4ecf90f3a3ad35a43b8654a26a2 patch 8.2.3514: autoread test with nano second time sometimes fails Commit: https://github.com/vim/vim/commit/eaa006dae3d5730e3b6dead27905444998b2cf8e Author: Bram Moolenaar 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. diff --git a/src/testdir/test_stat.vim b/src/testdir/test_stat.vim --- 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 diff --git a/src/version.c b/src/version.c --- 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,