diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-17 09:24:52 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-07-18 06:18:02 +0800 |
commit | f17d81933067c5356f1c8419218d61aaaec9046c (patch) | |
tree | 1edb0e3115cf8c4d9dfe0ac38a43cb692722a875 /test/old/testdir/test_source.vim | |
parent | e29f245a10821fcce454f7ede684aa0dd64efc33 (diff) | |
download | rneovim-f17d81933067c5356f1c8419218d61aaaec9046c.tar.gz rneovim-f17d81933067c5356f1c8419218d61aaaec9046c.tar.bz2 rneovim-f17d81933067c5356f1c8419218d61aaaec9046c.zip |
vim-patch:partial:9.0.0719: too many delete() calls in tests
Problem: Too many delete() calls in tests.
Solution: Use deferred delete where possible.
https://github.com/vim/vim/commit/56564964e6d0956c29687e8a10cb94fe42f5c097
This includes all changes expect changes in test_startup.vim.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old/testdir/test_source.vim')
-rw-r--r-- | test/old/testdir/test_source.vim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/old/testdir/test_source.vim b/test/old/testdir/test_source.vim index d4d96e36bf..01c08b183c 100644 --- a/test/old/testdir/test_source.vim +++ b/test/old/testdir/test_source.vim @@ -53,12 +53,10 @@ endfunc " When deleting a file and immediately creating a new one the inode may be " recycled. Vim should not recognize it as the same script. func Test_different_script() - call writefile(['let s:var = "asdf"'], 'XoneScript') + call writefile(['let s:var = "asdf"'], 'XoneScript', 'D') source XoneScript - call delete('XoneScript') - call writefile(['let g:var = s:var'], 'XtwoScript') + call writefile(['let g:var = s:var'], 'XtwoScript', 'D') call assert_fails('source XtwoScript', 'E121:') - call delete('XtwoScript') endfunc " When sourcing a vim script, shebang should be ignored. |