summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_regexp_utf8.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-10-05 21:45:30 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-05 21:45:30 +0100
commitdb77cb3c08784e6038dd029271b2080c1b2d9acb (patch)
tree7ed571e6e85cfbcc630191d2458de2d263c50227 /src/testdir/test_regexp_utf8.vim
parent3ff71cda986b809e8ffeebee6804b50b3607df63 (diff)
patch 9.0.0669: too many delete() calls in testsv9.0.0669
Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
Diffstat (limited to 'src/testdir/test_regexp_utf8.vim')
-rw-r--r--src/testdir/test_regexp_utf8.vim7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/testdir/test_regexp_utf8.vim b/src/testdir/test_regexp_utf8.vim
index d665a6f0be..fdee80f0d7 100644
--- a/src/testdir/test_regexp_utf8.vim
+++ b/src/testdir/test_regexp_utf8.vim
@@ -555,20 +555,17 @@ func Test_match_char_class_upper()
endfunc
func Test_match_invalid_byte()
- call writefile(0z630a.765d30aa0a.2e0a.790a.4030, 'Xinvalid')
+ call writefile(0z630a.765d30aa0a.2e0a.790a.4030, 'Xinvalid', 'D')
new
source Xinvalid
bwipe!
- call delete('Xinvalid')
endfunc
func Test_match_illegal_byte()
" Text has illegal bytes which need to be set explicitly
let lines = ["norm :set no\x01\<CR>", "silent n\xff", "silent norm :b\xff\<CR>"]
- call writefile(lines, 'Xregexp')
+ call writefile(lines, 'Xregexp', 'D')
call system(GetVimCommand() .. ' -X -Z -e -s -S Xregexp -c qa!')
-
- call delete('Xregexp')
endfunc
func Test_match_too_complicated()