@@ -97,7 +97,7 @@ endfunc
9797func Test_argadd_empty_curbuf ()
9898 new
9999 let curbuf = bufnr (' %' )
100- call writefile ([' test' , ' Xargadd' ], ' Xargadd' )
100+ call writefile ([' test' , ' Xargadd' ], ' Xargadd' , ' D ' )
101101 " must not re-use the current buffer.
102102 argadd Xargadd
103103 call assert_equal (curbuf, bufnr (' %' ))
@@ -108,7 +108,6 @@ func Test_argadd_empty_curbuf()
108108 call assert_equal (' Xargadd' , ' %' - >bufname ())
109109 call assert_equal (2 , line (' $' ))
110110
111- call delete (' Xargadd' )
112111 % argd
113112 bwipe!
114113endfunc
@@ -506,9 +505,9 @@ endfunc
506505" Test for autocommand that redefines the argument list, when doing ":all".
507506func Test_arglist_autocmd ()
508507 autocmd BufReadPost Xxx2 next Xxx2 Xxx1
509- call writefile ([' test file Xxx1' ], ' Xxx1' )
510- call writefile ([' test file Xxx2' ], ' Xxx2' )
511- call writefile ([' test file Xxx3' ], ' Xxx3' )
508+ call writefile ([' test file Xxx1' ], ' Xxx1' , ' D ' )
509+ call writefile ([' test file Xxx2' ], ' Xxx2' , ' D ' )
510+ call writefile ([' test file Xxx3' ], ' Xxx3' , ' D ' )
512511
513512 new
514513 " redefine arglist; go to Xxx1
@@ -524,18 +523,14 @@ func Test_arglist_autocmd()
524523
525524 autocmd ! BufReadPost Xxx2
526525 enew ! | only
527- call delete (' Xxx1' )
528- call delete (' Xxx2' )
529- call delete (' Xxx3' )
530526 argdelete Xxx*
531527 bwipe! Xxx1 Xxx2 Xxx3
532528endfunc
533529
534530func Test_arg_all_expand ()
535- call writefile ([' test file Xxx1' ], ' Xx x' )
531+ call writefile ([' test file Xxx1' ], ' Xx x' , ' D ' )
536532 next notexist Xx\ x runtest.vim
537533 call assert_equal (' notexist Xx\ x runtest.vim' , expand (' ##' ))
538- call delete (' Xx x' )
539534endfunc
540535
541536func Test_large_arg ()
0 commit comments