1
0
forked from aniani/vim

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:
Bram Moolenaar
2022-09-21 22:00:03 +01:00
parent 4740394f23
commit 5c645a25bb
9 changed files with 38 additions and 73 deletions

View File

@@ -183,13 +183,12 @@ func Test_win_execute_on_startup()
silent tabedit Xfile3
autocmd VimEnter * win_execute(id, 'close')
END
call writefile(lines, 'XwinExecute')
call writefile(lines, 'XwinExecute', 'D')
let buf = RunVimInTerminal('-p Xfile1 -Nu XwinExecute', {})
" this was crashing on exit with EXITFREE defined
call StopVimInTerminal(buf)
call delete('XwinExecute')
call delete('Xfile1')
endfunc