diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-19 16:09:46 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-19 16:09:46 +0100 |
commit | 4520d440c59034452d1450b27fcd56825c090687 (patch) | |
tree | d2391f9fa0bc3da5960768bca6519de0c251feb6 /src/testdir/test_delete.vim | |
parent | ee85df37634dfb0c40ae5de0b4f246aef460b392 (diff) |
patch 8.0.0485: not all windows commands are testedv8.0.0485
Problem: Not all windows commands are tested.
Solution: Add more tests for windows commands. (Dominique Pelle,
closes #1575) Run test_autocmd separately, it interferes with
other tests. Fix tests that depended on side effects.
Diffstat (limited to 'src/testdir/test_delete.vim')
-rw-r--r-- | src/testdir/test_delete.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_delete.vim b/src/testdir/test_delete.vim index 3cf26234dc..4686a0dc97 100644 --- a/src/testdir/test_delete.vim +++ b/src/testdir/test_delete.vim @@ -8,6 +8,7 @@ func Test_file_delete() call assert_equal(0, delete('Xfile')) call assert_fails('call readfile("Xfile")', 'E484:') call assert_equal(-1, delete('Xfile')) + bwipe Xfile endfunc func Test_dir_delete() @@ -35,6 +36,8 @@ func Test_recursive_delete() call assert_equal(0, delete('Xdir1', 'rf')) call assert_false(isdirectory('Xdir1')) call assert_equal(-1, delete('Xdir1', 'd')) + bwipe Xdir1/Xfile + bwipe Xdir1/subdir/Xfile endfunc func Test_symlink_delete() @@ -49,6 +52,7 @@ func Test_symlink_delete() call assert_equal(0, delete('Xlink')) call assert_equal(-1, delete('Xlink')) call assert_equal(0, delete('Xfile')) + bwipe Xfile endfunc func Test_symlink_dir_delete() @@ -96,4 +100,8 @@ func Test_symlink_recursive_delete() call assert_equal(['a', 'b'], readfile('Xdir4/Xfile')) call assert_equal(0, delete('Xdir4/Xfile')) call assert_equal(0, delete('Xdir4', 'd')) + + bwipe Xdir3/Xfile + bwipe Xdir3/subdir/Xfile + bwipe Xdir4/Xfile endfunc |