forked from aniani/vim
patch 8.1.1783: MS-Windows: compiler test may fail when using %:S
Problem: MS-Windows: compiler test may fail when using %:S. Solution: Reset 'shellslash'.
This commit is contained in:
@@ -10,6 +10,10 @@ func Test_compiler()
|
|||||||
unlet $LANG
|
unlet $LANG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" %:S does not work properly with 'shellslash' set
|
||||||
|
let save_shellslash = &shellslash
|
||||||
|
set noshellslash
|
||||||
|
|
||||||
e Xfoo.pl
|
e Xfoo.pl
|
||||||
compiler perl
|
compiler perl
|
||||||
call assert_equal('perl', b:current_compiler)
|
call assert_equal('perl', b:current_compiler)
|
||||||
@@ -27,6 +31,7 @@ func Test_compiler()
|
|||||||
call assert_match("\n 1 Xfoo.pl:3: Global symbol \"\$foo\" "
|
call assert_match("\n 1 Xfoo.pl:3: Global symbol \"\$foo\" "
|
||||||
\ . "requires explicit package name", a)
|
\ . "requires explicit package name", a)
|
||||||
|
|
||||||
|
let &shellslash = save_shellslash
|
||||||
call delete('Xfoo.pl')
|
call delete('Xfoo.pl')
|
||||||
bw!
|
bw!
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -777,6 +777,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 */
|
||||||
|
/**/
|
||||||
|
1783,
|
||||||
/**/
|
/**/
|
||||||
1782,
|
1782,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user