mirror of
https://github.com/vim/vim.git
synced 2025-10-08 06:04:08 -04:00
patch 9.0.0719: too many delete() calls in tests
Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
This commit is contained in:
@@ -652,7 +652,7 @@ func Test_syntax_c()
|
||||
\ "\t}",
|
||||
\ "\tNote: asdf",
|
||||
\ '}',
|
||||
\ ], 'Xtest.c')
|
||||
\ ], 'Xtest.c', 'D')
|
||||
|
||||
" This makes the default for 'background' use "dark", check that the
|
||||
" response to t_RB corrects it to "light".
|
||||
@@ -670,7 +670,6 @@ func Test_syntax_c()
|
||||
call StopVimInTerminal(buf)
|
||||
|
||||
let $COLORFGBG = ''
|
||||
call delete('Xtest.c')
|
||||
endfun
|
||||
|
||||
" Test \z(...) along with \z1
|
||||
@@ -704,10 +703,10 @@ func Test_syn_wrong_z_one()
|
||||
endfunc
|
||||
|
||||
func Test_syntax_after_bufdo()
|
||||
call writefile(['/* aaa comment */'], 'Xaaa.c')
|
||||
call writefile(['/* bbb comment */'], 'Xbbb.c')
|
||||
call writefile(['/* ccc comment */'], 'Xccc.c')
|
||||
call writefile(['/* ddd comment */'], 'Xddd.c')
|
||||
call writefile(['/* aaa comment */'], 'Xaaa.c', 'D')
|
||||
call writefile(['/* bbb comment */'], 'Xbbb.c', 'D')
|
||||
call writefile(['/* ccc comment */'], 'Xccc.c', 'D')
|
||||
call writefile(['/* ddd comment */'], 'Xddd.c', 'D')
|
||||
|
||||
let bnr = bufnr('%')
|
||||
new Xaaa.c
|
||||
@@ -735,10 +734,6 @@ func Test_syntax_after_bufdo()
|
||||
bwipe! Xccc.c
|
||||
bwipe! Xddd.c
|
||||
syntax off
|
||||
call delete('Xaaa.c')
|
||||
call delete('Xbbb.c')
|
||||
call delete('Xccc.c')
|
||||
call delete('Xddd.c')
|
||||
endfunc
|
||||
|
||||
func Test_syntax_foldlevel()
|
||||
|
Reference in New Issue
Block a user