1
0
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:
Bram Moolenaar
2022-01-12 15:15:27 +00:00
parent f479cac084
commit 5d9826973d
4 changed files with 8 additions and 6 deletions

View File

@@ -906,7 +906,7 @@ get_lval(
NULL, TRUE) == -1)
{
*p = cc;
return FAIL;
return NULL;
}
*p = cc;
}
@@ -5903,7 +5903,7 @@ handle_subscript(
type_T *type;
// Found script from "import {name} as name", script item name must
// follow.
// follow. "rettv->vval.v_number" has the script ID.
if (**arg != '.')
{
if (verbose)

View File

@@ -2156,7 +2156,7 @@ get_autoload_prefix(scriptitem_T *si)
if (p == NULL)
return NULL;
prefix = vim_strsave(p);
prefix = strlow_save(p);
if (prefix == NULL)
return NULL;

View File

@@ -1203,12 +1203,12 @@ def Test_vim9script_autoload_call()
g:result = 'other'
enddef
END
writefile(lines, 'Xdir/autoload/other.vim')
writefile(lines, 'Xdir/autoload/another.vim')
lines =<< trim END
vim9script
import autoload 'other.vim'
call other.Getother()
import autoload 'another.vim'
call another.Getother()
assert_equal('other', g:result)
END
CheckScriptSuccess(lines)

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4069,
/**/
4068,
/**/