1
0
forked from aniani/vim

patch 9.0.0631: too many delete() calls in tests

Problem:    Too many delete() calls in tests.
Solution:   Use deferred delete where possible.
This commit is contained in:
Bram Moolenaar
2022-09-30 21:57:11 +01:00
parent cfb4d4f312
commit 145d1fd910
11 changed files with 95 additions and 183 deletions

View File

@@ -237,7 +237,7 @@ function! Test_prompt_while_writing_to_hidden_buffer()
\ done'], #{out_io: 'buffer', out_name: ''})
startinsert
END
eval script->writefile(scriptName)
eval script->writefile(scriptName, 'D')
let buf = RunVimInTerminal('-S ' .. scriptName, {})
call WaitForAssert({-> assert_equal('cmd:', term_getline(buf, 1))})
@@ -250,7 +250,6 @@ function! Test_prompt_while_writing_to_hidden_buffer()
call WaitForAssert({-> assert_equal('cmd:testtesttest', term_getline(buf, 1))})
call StopVimInTerminal(buf)
call delete(scriptName)
endfunc
" vim: shiftwidth=2 sts=2 expandtab