]> granicus.if.org Git - vim/commitdiff
patch 9.0.1020: tests call GetSwapFileList() before it is defined v9.0.1020
authorBram Moolenaar <Bram@vim.org>
Tue, 6 Dec 2022 14:21:09 +0000 (14:21 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 6 Dec 2022 14:21:09 +0000 (14:21 +0000)
Problem:    Tests call GetSwapFileList() before it is defined.
Solution:   Move the call to after defining the function. (Christopher
            Plewright)

src/testdir/runtest.vim
src/version.c

index 93acf9958773b52c69b1fd00add2ac502dff6c32..ccd22e89faac5a7756a951844f1cbab7beb12ea7 100644 (file)
@@ -161,13 +161,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
 
@@ -210,6 +203,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
index e49b0bc792b9d42449d5045d5ab375e527136cd1..288164a4ee360439b6a003cf0a74c625fa933896 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1020,
 /**/
     1019,
 /**/