Mercurial > vim
diff src/testdir/test_expr.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 | 029c59bf78f1 |
children | 5bc99d85f773 |
line wrap: on
line diff
--- 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()