patch 9.0.0418: manually deleting temp test files
Problem: Manually deleting temp test files.
Solution: Use the 'D' flag of writefile() and mkdir().
diff --git a/src/testdir/test_cscope.vim b/src/testdir/test_cscope.vim
index bfc9de8..d70103c 100644
--- a/src/testdir/test_cscope.vim
+++ b/src/testdir/test_cscope.vim
@@ -300,7 +300,7 @@
" Test ":cs add {dir}" (add the {dir}/cscope.out database)
func Test_cscope_add_dir()
- call mkdir('Xcscopedir', 'p')
+ call mkdir('Xcscopedir', 'pD')
" Cscope doesn't handle symlinks, so this needs to be resolved in case a
" shadow directory is being used.
@@ -318,8 +318,6 @@
cs kill -1
call delete('Xcscopedir/cscope.out')
call assert_fails('cs add Xcscopedir', 'E563:')
-
- call delete('Xcscopedir', 'd')
endfunc
func Test_cscopequickfix()