mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
patch 9.0.0538: manually deleting test temp files
Problem: Manually deleting test temp files. Solution: Add the 'D' flag to writefile().
This commit is contained in:
@@ -706,13 +706,12 @@ func Test_function_outside_script()
|
||||
call writefile([execute('messages')], 'Xtest.out')
|
||||
qall
|
||||
END
|
||||
call writefile(cleanup, 'Xverify.vim')
|
||||
call writefile(cleanup, 'Xverify.vim', 'D')
|
||||
call RunVim([], [], "-c \"echo function('s:abc')\" -S Xverify.vim")
|
||||
call assert_match('E81: Using <SID> not in a', readfile('Xtest.out')[0])
|
||||
call RunVim([], [], "-c \"echo funcref('s:abc')\" -S Xverify.vim")
|
||||
call assert_match('E81: Using <SID> not in a', readfile('Xtest.out')[0])
|
||||
call delete('Xtest.out')
|
||||
call delete('Xverify.vim')
|
||||
endfunc
|
||||
|
||||
func Test_setmatches()
|
||||
|
Reference in New Issue
Block a user