Patch 9.0.1020
Problem:    Tests call GetSwapFileList() before it is defined.
Solution:   Move the call to after defining the function. (Christopher
            Plewright)
Files:      src/testdir/runtest.vim


*** ../vim-9.0.1019/src/testdir/runtest.vim     2022-12-05 20:58:01.191236353 
+0000
--- src/testdir/runtest.vim     2022-12-06 13:03:37.420253558 +0000
***************
*** 161,173 ****
  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
  
--- 161,166 ----
***************
*** 210,215 ****
--- 203,215 ----
    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
*** ../vim-9.0.1019/src/version.c       2022-12-06 14:17:32.182527473 +0000
--- src/version.c       2022-12-06 14:20:20.986711446 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1020,
  /**/

-- 
If you're sending someone Styrofoam, what do you pack it in?

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20221206142135.22D0E1C07A0%40moolenaar.net.

Raspunde prin e-mail lui