mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14: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:')
|
v9.CheckScriptFailure(lines, 'E484:')
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
def Test_autoload_import_relative_compiled()
|
def Test_autoload_import_relative_compiled_buffer()
|
||||||
# autoload relative, access from compiled function. #14565
|
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
|
var lines =<< trim END
|
||||||
vim9script
|
vim9script
|
||||||
|
|
||||||
@@ -1149,11 +1154,11 @@ def Test_autoload_import_relative_compiled()
|
|||||||
return 'InFile.vim'
|
return 'InFile.vim'
|
||||||
enddef
|
enddef
|
||||||
END
|
END
|
||||||
writefile(lines, 'xfile.vim', 'D')
|
writefile(lines, 'Ximportrelativebuffer.vim', 'D')
|
||||||
lines =<< trim END
|
lines =<< trim END
|
||||||
vim9script
|
vim9script
|
||||||
|
|
||||||
import autoload './xfile.vim'
|
import autoload './Ximportrelativebuffer.vim' as xfile
|
||||||
|
|
||||||
def F(): string
|
def F(): string
|
||||||
return xfile.F1()
|
return xfile.F1()
|
||||||
@@ -1163,6 +1168,7 @@ def Test_autoload_import_relative_compiled()
|
|||||||
new
|
new
|
||||||
setline(1, lines)
|
setline(1, lines)
|
||||||
:source
|
:source
|
||||||
|
:bw!
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
def Test_autoload_import_relative_autoload_dir()
|
def Test_autoload_import_relative_autoload_dir()
|
||||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
353,
|
||||||
/**/
|
/**/
|
||||||
352,
|
352,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user