]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0353: tests: Test_autoload_import_relative_compiled fails on Windows v9.1.0353
authorErnie Rael <errael@raelity.com>
Thu, 18 Apr 2024 20:53:33 +0000 (22:53 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 18 Apr 2024 20:53:33 +0000 (22:53 +0200)
Problem:  tests: Test_autoload_import_relative_compiled fails on Windows
Solution: Disable on Windows for now, add missing :bw for clean-up (Ernie Rael)

closes: #14579

Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_vim9_import.vim
src/version.c

index 968bce08b9a87fd0cedf6756b07ae6e9caa71637..b7902f10c0ccd720e8abf19ecdb55ad8c894ebfd 100644 (file)
@@ -1140,8 +1140,13 @@ def Test_autoload_import_relative()
   v9.CheckScriptFailure(lines, 'E484:')
 enddef
 
-def Test_autoload_import_relative_compiled()
-  # autoload relative, access from compiled function. #14565
+def Test_autoload_import_relative_compiled_buffer()
+  if !has('unix')
+    # temporary, until it's discovered why the test fails on Windows.
+    CheckUnix
+    return
+  endif
+  # autoload relative, access from compiled function. #14565, #14579
   var lines =<< trim END
     vim9script
 
@@ -1149,11 +1154,11 @@ def Test_autoload_import_relative_compiled()
         return 'InFile.vim'
     enddef
   END
-  writefile(lines, 'xfile.vim', 'D')
+  writefile(lines, 'Ximportrelativebuffer.vim', 'D')
   lines =<< trim END
     vim9script
 
-    import autoload './xfile.vim'
+    import autoload './Ximportrelativebuffer.vim' as xfile
 
     def F(): string
       return xfile.F1()
@@ -1163,6 +1168,7 @@ def Test_autoload_import_relative_compiled()
   new
   setline(1, lines)
   :source
+  :bw!
 enddef
 
 def Test_autoload_import_relative_autoload_dir()
index 7ee097953d4050988cab16e1cd35882879ff4879..7458026de6910fe57d7ee4dada0e291b240d472d 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    353,
 /**/
     352,
 /**/