patch 9.1.0353: tests: Test_autoload_import_relative_compiled fails on Windows
Commit: https://github.com/vim/vim/commit/6f1d05b85a4543b9806ea48926f6d4f497ad720a Author: Ernie Rael <err...@raelity.com> Date: Thu Apr 18 22:53:33 2024 +0200 patch 9.1.0353: tests: Test_autoload_import_relative_compiled fails on Windows 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 <err...@raelity.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/src/testdir/test_vim9_import.vim b/src/testdir/test_vim9_import.vim index 968bce08b..b7902f10c 100644 --- a/src/testdir/test_vim9_import.vim +++ b/src/testdir/test_vim9_import.vim @@ -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() diff --git a/src/version.c b/src/version.c index 7ee097953..7458026de 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 353, /**/ 352, /**/ -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1rxYrU-000x8S-DI%40256bit.org.