aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir/test_autocmd.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-22 18:17:03 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-08-22 18:56:43 +0800
commit48722ec400eff53baa5f7bdf0aa5e933e20fb0f4 (patch)
treecb5fa9ba1fc85a0a33f050675cfa558d9ba6ffea /test/old/testdir/test_autocmd.vim
parent1da705c433c3519a65fd36d77792360cf479db2a (diff)
downloadrneovim-48722ec400eff53baa5f7bdf0aa5e933e20fb0f4.tar.gz
rneovim-48722ec400eff53baa5f7bdf0aa5e933e20fb0f4.tar.bz2
rneovim-48722ec400eff53baa5f7bdf0aa5e933e20fb0f4.zip
vim-patch:9.0.0428: autocmd test uses common file name
Problem: Autocmd test uses common file name. Solution: Use unique name to reduce flakiness. https://github.com/vim/vim/commit/be9fc5b60cbdf697c4f6d12345dd7fcdb5d6ca01 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old/testdir/test_autocmd.vim')
-rw-r--r--test/old/testdir/test_autocmd.vim18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/old/testdir/test_autocmd.vim b/test/old/testdir/test_autocmd.vim
index 33c51704f4..79f8ee43c1 100644
--- a/test/old/testdir/test_autocmd.vim
+++ b/test/old/testdir/test_autocmd.vim
@@ -964,7 +964,7 @@ func Test_autocmd_bufwipe_in_SessLoadPost()
augroup END
func WriteErrors()
- call writefile([execute("messages")], "Xerrors")
+ call writefile([execute("messages")], "XerrorsBwipe")
endfunc
au VimLeave * call WriteErrors()
[CODE]
@@ -972,11 +972,11 @@ func Test_autocmd_bufwipe_in_SessLoadPost()
call writefile(content, 'Xvimrc', 'D')
call system(GetVimCommand('Xvimrc') .. ' --headless --noplugins -S Session.vim -c cq')
sleep 100m
- let errors = join(readfile('Xerrors'))
+ let errors = join(readfile('XerrorsBwipe'))
call assert_match('E814:', errors)
set swapfile
- for file in ['Session.vim', 'Xerrors']
+ for file in ['Session.vim', 'XerrorsBwipe']
call delete(file)
endfor
endfunc
@@ -989,16 +989,16 @@ func Test_autocmd_blast_badd()
edit foo1
au BufNew,BufAdd,BufWinEnter,BufEnter,BufLeave,BufWinLeave,BufUnload,VimEnter foo* ball
edit foo2
- call writefile(['OK'], 'Xerrors')
+ call writefile(['OK'], 'XerrorsBlast')
qall
[CODE]
call writefile(content, 'XblastBall', 'D')
call system(GetVimCommand() .. ' --clean -S XblastBall')
sleep 100m
- call assert_match('OK', readfile('Xerrors')->join())
+ call assert_match('OK', readfile('XerrorsBlast')->join())
- call delete('Xerrors')
+ call delete('XerrorsBlast')
endfunc
" SEGV occurs in older versions.
@@ -1025,7 +1025,7 @@ func Test_autocmd_bufwipe_in_SessLoadPost2()
au SessionLoadPost * call DeleteInactiveBufs()
func WriteErrors()
- call writefile([execute("messages")], "Xerrors")
+ call writefile([execute("messages")], "XerrorsPost")
endfunc
au VimLeave * call WriteErrors()
[CODE]
@@ -1033,13 +1033,13 @@ 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'))
+ let errors = join(readfile('XerrorsPost'))
" This probably only ever matches on unix.
call assert_notmatch('Caught deadly signal SEGV', errors)
call assert_match('SessionLoadPost DONE', errors)
set swapfile
- for file in ['Session.vim', 'Xerrors']
+ for file in ['Session.vim', 'XerrorsPost']
call delete(file)
endfor
endfunc