summaryrefslogtreecommitdiff
path: root/src/testdir/test_delete.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-27 19:13:28 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-27 19:13:28 +0100
commitaeb313f355cd67638e3c611354ce401d86f56afe (patch)
treeeec474c3614ccb296a14b8ad8753bdb91459e964 /src/testdir/test_delete.vim
parent6ee874d378829b62e0944063a9a029e81b5debfb (diff)
downloadvim-git-aeb313f355cd67638e3c611354ce401d86f56afe.tar.gz
patch 8.2.2060: check for features implemented with "if"v8.2.2060
Problem: Check for features implemented with "if". Solution: Use the Check commands. (Ken Takata, closes #7383)
Diffstat (limited to 'src/testdir/test_delete.vim')
-rw-r--r--src/testdir/test_delete.vim14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/testdir/test_delete.vim b/src/testdir/test_delete.vim
index b23a3bd02..6b49f153c 100644
--- a/src/testdir/test_delete.vim
+++ b/src/testdir/test_delete.vim
@@ -1,5 +1,7 @@
" Test for delete().
+source check.vim
+
func Test_file_delete()
split Xfile
call setline(1, ['a', 'b'])
@@ -41,9 +43,7 @@ func Test_recursive_delete()
endfunc
func Test_symlink_delete()
- if !has('unix')
- return
- endif
+ CheckUnix
split Xfile
call setline(1, ['a', 'b'])
wq
@@ -56,9 +56,7 @@ func Test_symlink_delete()
endfunc
func Test_symlink_dir_delete()
- if !has('unix')
- return
- endif
+ CheckUnix
call mkdir('Xdir1')
silent !ln -s Xdir1 Xlink
call assert_true(isdirectory('Xdir1'))
@@ -70,9 +68,7 @@ func Test_symlink_dir_delete()
endfunc
func Test_symlink_recursive_delete()
- if !has('unix')
- return
- endif
+ CheckUnix
call mkdir('Xdir3')
call mkdir('Xdir3/subdir')
call mkdir('Xdir4')