commit 5f4e0a005b0873f466aba16762d6671b7f842d51
parent ab7bd119d7788cbf6735f4ca439246f07aa73911
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed, 19 Apr 2023 11:11:20 +0800
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>
Diffstat:
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git 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