diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-19 11:11:20 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-19 11:29:35 +0800 |
commit | 5f4e0a005b0873f466aba16762d6671b7f842d51 (patch) | |
tree | 1671b8b393c313585f87ea93186307ae6f981f8e | |
parent | ab7bd119d7788cbf6735f4ca439246f07aa73911 (diff) | |
download | rneovim-5f4e0a005b0873f466aba16762d6671b7f842d51.tar.gz rneovim-5f4e0a005b0873f466aba16762d6671b7f842d51.tar.bz2 rneovim-5f4e0a005b0873f466aba16762d6671b7f842d51.zip |
vim-patch:9.0.1020: tests call GetSwapFileList() before it is defined
Problem: Tests call GetSwapFileList() before it is defined.
Solution: Move the call to after defining the function. (Christopher
Plewright)
https://github.com/vim/vim/commit/6572a90287c7aa6e8042b18604891e9df3657245
Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r-- | test/old/testdir/runtest.vim | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/old/testdir/runtest.vim b/test/old/testdir/runtest.vim index 935d033e4e..166bfaede1 100644 --- a/test/old/testdir/runtest.vim +++ b/test/old/testdir/runtest.vim @@ -131,13 +131,6 @@ if has('mac') endif -" A previous (failed) test run may have left swap files behind. Delete them -" before running tests again, they might interfere. -for name in s:GetSwapFileList() - call delete(name) -endfor - - " Prepare for calling test_garbagecollect_now(). let v:testing = 1 @@ -176,6 +169,13 @@ func s:GetSwapFileList() return files endfunc +" A previous (failed) test run may have left swap files behind. Delete them +" before running tests again, they might interfere. +for name in s:GetSwapFileList() + call delete(name) +endfor + + " Invoked when a test takes too much time. func TestTimeout(id) split test.log |