aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/testdir/test_compiler.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_compiler.vim b/src/nvim/testdir/test_compiler.vim
index 46c14d8bc3..f561e84a38 100644
--- a/src/nvim/testdir/test_compiler.vim
+++ b/src/nvim/testdir/test_compiler.vim
@@ -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