1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2021-10-18 14:37:13 +01:00
parent 375c35a63f
commit 944eeb44fb
2 changed files with 4 additions and 1 deletions

View File

@@ -104,7 +104,8 @@ func Test_autoread_fast()
setlocal autoread setlocal autoread
call setline(1, 'foo') call setline(1, 'foo')
w! w!
silent !echo bar > Xautoread sleep 10m
call writefile(['bar'], 'Xautoread')
sleep 10m sleep 10m
checktime checktime
call assert_equal('bar', trim(getline(1))) call assert_equal('bar', trim(getline(1)))

View File

@@ -757,6 +757,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
3534,
/**/ /**/
3533, 3533,
/**/ /**/