patch 8.2.4200: some tests do not clean up properly v8.2.4200
authorYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 24 Jan 2022 11:40:37 +0000 (11:40 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 24 Jan 2022 11:40:37 +0000 (11:40 +0000)
Problem:    Some tests do not clean up properly.
Solution:   Delete created files. (Yegappan Lakshmanan, closes #9611)

src/testdir/test_filetype.vim
src/testdir/test_messages.vim
src/testdir/test_vim9_import.vim
src/version.c

index 99be4702cf9e2dd2e3db8871618f6ab3c45db17c..2490377ea25672a6551a6dc6b0a195ba794c527f 100644 (file)
@@ -1191,6 +1191,10 @@ func Test_foam_file()
 
   call delete('0', 'rf')
   call delete('0.orig', 'rf')
+  call delete('Xfile1Dict')
+  call delete('Xfile1Dict.something')
+  call delete('XfileProperties')
+  call delete('XfileProperties.something')
   filetype off
 endfunc
 
index 1ba92ff5f202c1128522325dd92cfe155d7c155e..d3c80bf6c3e684d737cc539081069608018b4026 100644 (file)
@@ -373,6 +373,7 @@ func Test_fileinfo_after_echo()
   " clean up
   call StopVimInTerminal(buf)
   call delete('Xtest_fileinfo_after_echo')
+  call delete('b.txt')
 endfunc
 
 " vim: shiftwidth=2 sts=2 expandtab
index 8291e4a4804c45be4f9f1cddadbdef37050efec7..2ad5057565308a6ffb5f74671339359f3f24f1c4 100644 (file)
@@ -757,6 +757,7 @@ def Run_Test_import_in_diffexpr()
   diffoff!
   bwipe!
   bwipe!
+  delete('Xdiffexpr')
 enddef
 
 def Test_import_in_patchexpr()
@@ -843,7 +844,7 @@ def Test_import_in_includeexpr()
   bwipe!
   bwipe!
   set includeexpr=
-  delete('Xinclude')
+  delete('Xinclude.vim')
   delete('Xthisfile')
 enddef
 
@@ -1927,7 +1928,7 @@ def Test_autoload_name_wring()
   writefile(lines, 'Xscriptname.vim')
   CheckScriptFailure(lines, 'E1263:')
 
-  delete('Xscriptname')
+  delete('Xscriptname.vim')
 enddef
 
 def Test_import_autoload_postponed()
index 621bc59a208118a3c663a167493502bd175c197c..aa0910e0fd94fde5467053e3932fb98055697cf2 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4200,
 /**/
     4199,
 /**/