From 1da705c433c3519a65fd36d77792360cf479db2a Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 22 Aug 2023 18:14:19 +0800 Subject: vim-patch:9.0.0425: autocmd test is a bit flaky on MS-Windows Problem: Autocmd test is a bit flaky on MS-Windows. Solution: Add a bit more sleeping. (Ken Takata, closes vim/vim#11095) https://github.com/vim/vim/commit/ae04a6049b3f0e30a671966ed2dda1979e0b5f20 Co-authored-by: Bram Moolenaar --- test/old/testdir/test_autocmd.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/old/testdir/test_autocmd.vim b/test/old/testdir/test_autocmd.vim index a69b293dbd..33c51704f4 100644 --- a/test/old/testdir/test_autocmd.vim +++ b/test/old/testdir/test_autocmd.vim @@ -971,7 +971,7 @@ func Test_autocmd_bufwipe_in_SessLoadPost() call writefile(content, 'Xvimrc', 'D') call system(GetVimCommand('Xvimrc') .. ' --headless --noplugins -S Session.vim -c cq') - sleep 50m + sleep 100m let errors = join(readfile('Xerrors')) call assert_match('E814:', errors) @@ -995,6 +995,7 @@ func Test_autocmd_blast_badd() call writefile(content, 'XblastBall', 'D') call system(GetVimCommand() .. ' --clean -S XblastBall') + sleep 100m call assert_match('OK', readfile('Xerrors')->join()) call delete('Xerrors') @@ -1031,6 +1032,7 @@ func Test_autocmd_bufwipe_in_SessLoadPost2() call writefile(content, 'Xvimrc', 'D') call system(GetVimCommand('Xvimrc') .. ' --headless --noplugins -S Session.vim -c cq') + sleep 100m let errors = join(readfile('Xerrors')) " This probably only ever matches on unix. call assert_notmatch('Caught deadly signal SEGV', errors) -- cgit