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_changelist.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_changelist.vim')
-rw-r--r-- | src/testdir/test_changelist.vim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testdir/test_changelist.vim b/src/testdir/test_changelist.vim index 0d435590a9..c9d8ea4ea1 100644 --- a/src/testdir/test_changelist.vim +++ b/src/testdir/test_changelist.vim @@ -64,8 +64,8 @@ func Test_getchangelist() call assert_equal([], 10->getchangelist()) call assert_equal([[], 0], getchangelist()) - call writefile(['line1', 'line2', 'line3'], 'Xclistfile1.txt') - call writefile(['line1', 'line2', 'line3'], 'Xclistfile2.txt') + call writefile(['line1', 'line2', 'line3'], 'Xclistfile1.txt', 'D') + call writefile(['line1', 'line2', 'line3'], 'Xclistfile2.txt', 'D') edit Xclistfile1.txt let buf_1 = bufnr() @@ -100,8 +100,6 @@ func Test_getchangelist() \ getchangelist(buf_2)) bwipe! - call delete('Xclistfile1.txt') - call delete('Xclistfile2.txt') endfunc " vim: shiftwidth=2 sts=2 expandtab |