diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-21 22:00:03 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-21 22:00:03 +0100 |
commit | 5c645a25bb8e6d766db720a44b9ceeff39d1e92b (patch) | |
tree | 87af429e6afc978e374bcf5306981b3a1e492bbd /src/testdir/test_expr.vim | |
parent | 4740394f230dda09d6e9337465305741d8ee4fa3 (diff) |
patch 9.0.0538: manually deleting test temp filesv9.0.0538
Problem: Manually deleting test temp files.
Solution: Add the 'D' flag to writefile().
Diffstat (limited to 'src/testdir/test_expr.vim')
-rw-r--r-- | src/testdir/test_expr.vim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim index 8e2345d7f4..b47896340f 100644 --- a/src/testdir/test_expr.vim +++ b/src/testdir/test_expr.vim @@ -706,13 +706,12 @@ func Test_function_outside_script() call writefile([execute('messages')], 'Xtest.out') qall END - call writefile(cleanup, 'Xverify.vim') + call writefile(cleanup, 'Xverify.vim', 'D') call RunVim([], [], "-c \"echo function('s:abc')\" -S Xverify.vim") call assert_match('E81: Using <SID> not in a', readfile('Xtest.out')[0]) call RunVim([], [], "-c \"echo funcref('s:abc')\" -S Xverify.vim") call assert_match('E81: Using <SID> not in a', readfile('Xtest.out')[0]) call delete('Xtest.out') - call delete('Xverify.vim') endfunc func Test_setmatches() |