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'.
dff2adc8dd
This commit is contained in:
Jan Edmund Lazo 2019-09-18 21:52:19 -04:00
parent d6f658e38f
commit 690cd4f012
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -10,6 +10,10 @@ func Test_compiler()
unlet $LANG
endif
" %:S does not work properly with 'shellslash' set
let save_shellslash = &shellslash
set noshellslash
e Xfoo.pl
compiler perl
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\" "
\ . "requires explicit package name", a)
let &shellslash = save_shellslash
call delete('Xfoo.pl')
bw!
endfunc