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)

ae04a6049b

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq 2023-08-22 18:14:19 +08:00
parent 10990eace2
commit 1da705c433

View File

@ -971,7 +971,7 @@ func Test_autocmd_bufwipe_in_SessLoadPost()
call writefile(content, 'Xvimrc', 'D') call writefile(content, 'Xvimrc', 'D')
call system(GetVimCommand('Xvimrc') .. ' --headless --noplugins -S Session.vim -c cq') call system(GetVimCommand('Xvimrc') .. ' --headless --noplugins -S Session.vim -c cq')
sleep 50m sleep 100m
let errors = join(readfile('Xerrors')) let errors = join(readfile('Xerrors'))
call assert_match('E814:', errors) call assert_match('E814:', errors)
@ -995,6 +995,7 @@ func Test_autocmd_blast_badd()
call writefile(content, 'XblastBall', 'D') call writefile(content, 'XblastBall', 'D')
call system(GetVimCommand() .. ' --clean -S XblastBall') call system(GetVimCommand() .. ' --clean -S XblastBall')
sleep 100m
call assert_match('OK', readfile('Xerrors')->join()) call assert_match('OK', readfile('Xerrors')->join())
call delete('Xerrors') call delete('Xerrors')
@ -1031,6 +1032,7 @@ func Test_autocmd_bufwipe_in_SessLoadPost2()
call writefile(content, 'Xvimrc', 'D') call writefile(content, 'Xvimrc', 'D')
call system(GetVimCommand('Xvimrc') .. ' --headless --noplugins -S Session.vim -c cq') call system(GetVimCommand('Xvimrc') .. ' --headless --noplugins -S Session.vim -c cq')
sleep 100m
let errors = join(readfile('Xerrors')) let errors = join(readfile('Xerrors'))
" This probably only ever matches on unix. " This probably only ever matches on unix.
call assert_notmatch('Caught deadly signal SEGV', errors) call assert_notmatch('Caught deadly signal SEGV', errors)