mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27: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:
@@ -117,13 +117,12 @@ func Test_exit_error_reading_input()
|
||||
CheckNotAsan
|
||||
CheckNotValgrind
|
||||
|
||||
call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 'Xtestout')", ":tabnew", "q:"], 'Xscript', 'b')
|
||||
call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 'Xtestout')", ":tabnew", "q:"], 'Xscript', 'bD')
|
||||
|
||||
if RunVim([], [], '<Xscript')
|
||||
call assert_equal(1, v:shell_error)
|
||||
call assert_equal(['l = 1'], readfile('Xtestout'))
|
||||
endif
|
||||
call delete('Xscript')
|
||||
call delete('Xtestout')
|
||||
endfun
|
||||
|
||||
|
||||
Reference in New Issue
Block a user