summaryrefslogtreecommitdiff
path: root/src/testdir/test_jumplist.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-29 21:01:57 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-29 21:01:57 +0100
commit7dd5a78b88af7734bdbf236fdfafb49f27a0ca2e (patch)
tree4b4a6aabc97d0e33296c24b8b70b841f7a5c063b /src/testdir/test_jumplist.vim
parentac38ec7c7f7cb0ab94397dc19bd72b0a84afdbe5 (diff)
downloadvim-git-7dd5a78b88af7734bdbf236fdfafb49f27a0ca2e.tar.gz
patch 9.0.0625: too many delete() calls in testsv9.0.0625
Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
Diffstat (limited to 'src/testdir/test_jumplist.vim')
-rw-r--r--src/testdir/test_jumplist.vim4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/testdir/test_jumplist.vim b/src/testdir/test_jumplist.vim
index 054fda083..4b5e3213f 100644
--- a/src/testdir/test_jumplist.vim
+++ b/src/testdir/test_jumplist.vim
@@ -15,7 +15,7 @@ func Test_getjumplist()
for i in range(1, 100)
call add(lines, "Line " . i)
endfor
- call writefile(lines, "Xtest")
+ call writefile(lines, "Xtest", 'D')
" Jump around and create a jump list
edit Xtest
@@ -57,8 +57,6 @@ func Test_getjumplist()
clearjumps
call test_garbagecollect_now()
call assert_equal(4, l[1])
-
- call delete("Xtest")
endfunc
func Test_jumplist_invalid()