]> granicus.if.org Git - vim/commitdiff
patch 8.2.3130: Vim9: import test fails v8.2.3130
authorBram Moolenaar <Bram@vim.org>
Thu, 8 Jul 2021 20:02:11 +0000 (22:02 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 8 Jul 2021 20:02:11 +0000 (22:02 +0200)
Problem:    Vim9: import test fails.
Solution:   Rename directory back to "import", use "p" to avoid an error when
            the directory already exists.

src/testdir/test_vim9_script.vim
src/version.c

index d4fdd7cf8178d8e9ae11a53a0e4a8058c42f2c09..66b0c740fedb767728e1d80d21072f7733d73912 100644 (file)
@@ -1955,8 +1955,8 @@ def Test_import_rtp()
         'g:imported_rtp = exported',
         ]
   writefile(import_lines, 'Ximport_rtp.vim')
-  mkdir('Ximport')
-  writefile(s:export_script_lines, 'Ximport/Xexport_rtp.vim')
+  mkdir('import', 'p')
+  writefile(s:export_script_lines, 'import/Xexport_rtp.vim')
 
   var save_rtp = &rtp
   &rtp = getcwd()
@@ -1968,7 +1968,7 @@ def Test_import_rtp()
   Undo_export_script_lines()
   unlet g:imported_rtp
   delete('Ximport_rtp.vim')
-  delete('Ximport', 'rf')
+  delete('import', 'rf')
 enddef
 
 def Test_import_compile_error()
index 6a5997070e232d9cc00aaabc840e34a5834caa03..fb76c39c6f8f6786c33f79011b3f0ff85c0d60a2 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3130,
 /**/
     3129,
 /**/