diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-08 16:39:22 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-08 16:39:22 +0100 |
commit | 45bbaef0382c5468d9fac511775bd99ea7bf5b84 (patch) | |
tree | abd7687d97b0d9abe4d39d5386245dc521bad206 /src/testdir/test_cmdwin.vim | |
parent | 2a4c885d54171f68ec2c2d6eb4ae281c7fefb802 (diff) |
patch 9.0.0418: manually deleting temp test filesv9.0.0418
Problem: Manually deleting temp test files.
Solution: Use the 'D' flag of writefile() and mkdir().
Diffstat (limited to 'src/testdir/test_cmdwin.vim')
-rw-r--r-- | src/testdir/test_cmdwin.vim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testdir/test_cmdwin.vim b/src/testdir/test_cmdwin.vim index 1c42cc09eb..d62673aba2 100644 --- a/src/testdir/test_cmdwin.vim +++ b/src/testdir/test_cmdwin.vim @@ -70,7 +70,7 @@ func Test_cmdwin_restore() call setline(1, range(30)) 2split [SCRIPT] - call writefile(lines, 'XTest_restore') + call writefile(lines, 'XTest_restore', 'D') let buf = RunVimInTerminal('-S XTest_restore', {'rows': 12}) call TermWait(buf, 50) @@ -90,7 +90,6 @@ func Test_cmdwin_restore() " clean up call StopVimInTerminal(buf) - call delete('XTest_restore') endfunc func Test_cmdwin_no_terminal() @@ -186,7 +185,7 @@ func Test_cmdwin_interrupted() let lines =<< trim [SCRIPT] au WinNew * smile [SCRIPT] - call writefile(lines, 'XTest_cmdwin') + call writefile(lines, 'XTest_cmdwin', 'D') let buf = RunVimInTerminal('-S XTest_cmdwin', {'rows': 18}) " open cmdwin @@ -201,7 +200,6 @@ func Test_cmdwin_interrupted() " clean up call StopVimInTerminal(buf) - call delete('XTest_cmdwin') endfunc " Test for recursively getting multiple command line inputs |