diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-05 21:53:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-05 21:53:24 +0200 |
commit | 3940ec6d41a07f9abbfba7d4db6b49d3d8b43a9a (patch) | |
tree | 1e1a4d94cde09166c2f1f9546b17edcd44f499c6 /src/testdir/test_functions.vim | |
parent | 4f5b0e5355a673ba5228bef037dc5c30734a1378 (diff) |
patch 8.1.1638: running tests leaves some files behindv8.1.1638
Problem: Running tests leaves some files behind.
Solution: Delete the files. (Ozaki Kiichi, closes #4617)
Diffstat (limited to 'src/testdir/test_functions.vim')
-rw-r--r-- | src/testdir/test_functions.vim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim index a08cef79d1..9199ba7ce7 100644 --- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -1528,10 +1528,10 @@ func Test_bufadd_bufload() call assert_equal([''], getbufline(buf, 1, '$')) let curbuf = bufnr('') - call writefile(['some', 'text'], 'otherName') - let buf = bufadd('otherName') + call writefile(['some', 'text'], 'XotherName') + let buf = bufadd('XotherName') call assert_notequal(0, buf) - call assert_equal(1, bufexists('otherName')) + call assert_equal(1, bufexists('XotherName')) call assert_equal(0, getbufvar(buf, '&buflisted')) call assert_equal(0, bufloaded(buf)) call bufload(buf) @@ -1554,6 +1554,7 @@ func Test_bufadd_bufload() call assert_equal(0, bufexists(buf2)) bwipe someName - bwipe otherName + bwipe XotherName call assert_equal(0, bufexists('someName')) + call delete('XotherName') endfunc |