mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
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 <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ed908f760d
commit
6f1d05b85a
@@ -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()
|
||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
353,
|
||||
/**/
|
||||
352,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user