Mercurial > vim
diff src/testdir/test_expand_func.vim @ 30405:ea38db8639eb v9.0.0538
patch 9.0.0538: manually deleting test temp files
Commit: https://github.com/vim/vim/commit/5c645a25bb8e6d766db720a44b9ceeff39d1e92b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 21 22:00:03 2022 +0100
patch 9.0.0538: manually deleting test temp files
Problem: Manually deleting test temp files.
Solution: Add the 'D' flag to writefile().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 21 Sep 2022 23:15:03 +0200 |
parents | 32f358d71ec2 |
children | dbec60b8c253 |
line wrap: on
line diff
--- a/src/testdir/test_expand_func.vim +++ b/src/testdir/test_expand_func.vim @@ -56,14 +56,13 @@ func Test_expand_sfile_and_stack() " comment here let g:stack_value = expand('<stack>') END - call writefile(lines, 'Xstack') + call writefile(lines, 'Xstack', 'D') source Xstack call assert_match('\<Xstack\[2\]$', g:stack_value) unlet g:stack_value - call delete('Xstack') if exists('+shellslash') - call mkdir('Xshellslash') + call mkdir('Xshellslash', 'R') let lines =<< trim END let g:stack1 = expand('<stack>') set noshellslash @@ -83,7 +82,6 @@ func Test_expand_sfile_and_stack() unlet g:stack2 unlet g:stack3 endfor - call delete('Xshellslash', 'rf') endif endfunc