forked from aniani/vim
patch 8.2.4069: Vim9: import test fails on MS-Windows
Problem: Vim9: import test fails on MS-Windows. Solution: Ignore case. Adjust test to avoid name that only differs in case.
This commit is contained in:
@@ -906,7 +906,7 @@ get_lval(
|
|||||||
NULL, TRUE) == -1)
|
NULL, TRUE) == -1)
|
||||||
{
|
{
|
||||||
*p = cc;
|
*p = cc;
|
||||||
return FAIL;
|
return NULL;
|
||||||
}
|
}
|
||||||
*p = cc;
|
*p = cc;
|
||||||
}
|
}
|
||||||
@@ -5903,7 +5903,7 @@ handle_subscript(
|
|||||||
type_T *type;
|
type_T *type;
|
||||||
|
|
||||||
// Found script from "import {name} as name", script item name must
|
// Found script from "import {name} as name", script item name must
|
||||||
// follow.
|
// follow. "rettv->vval.v_number" has the script ID.
|
||||||
if (**arg != '.')
|
if (**arg != '.')
|
||||||
{
|
{
|
||||||
if (verbose)
|
if (verbose)
|
||||||
|
@@ -2156,7 +2156,7 @@ get_autoload_prefix(scriptitem_T *si)
|
|||||||
|
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
prefix = vim_strsave(p);
|
prefix = strlow_save(p);
|
||||||
if (prefix == NULL)
|
if (prefix == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
@@ -1203,12 +1203,12 @@ def Test_vim9script_autoload_call()
|
|||||||
g:result = 'other'
|
g:result = 'other'
|
||||||
enddef
|
enddef
|
||||||
END
|
END
|
||||||
writefile(lines, 'Xdir/autoload/other.vim')
|
writefile(lines, 'Xdir/autoload/another.vim')
|
||||||
|
|
||||||
lines =<< trim END
|
lines =<< trim END
|
||||||
vim9script
|
vim9script
|
||||||
import autoload 'other.vim'
|
import autoload 'another.vim'
|
||||||
call other.Getother()
|
call another.Getother()
|
||||||
assert_equal('other', g:result)
|
assert_equal('other', g:result)
|
||||||
END
|
END
|
||||||
CheckScriptSuccess(lines)
|
CheckScriptSuccess(lines)
|
||||||
|
@@ -750,6 +750,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 */
|
||||||
|
/**/
|
||||||
|
4069,
|
||||||
/**/
|
/**/
|
||||||
4068,
|
4068,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user