comparison src/testdir/test_compiler.vim @ 17572:0d7c87cad133 v8.1.1783

patch 8.1.1783: MS-Windows: compiler test may fail when using %:S commit https://github.com/vim/vim/commit/dff2adc8ddcb6c8f3390a82c321362f8d6756fb8 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 31 22:18:22 2019 +0200 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'.
author Bram Moolenaar <Bram@vim.org>
date Wed, 31 Jul 2019 22:30:06 +0200
parents 9ff35e144467
children 9b7c7754ba9d
comparison
equal deleted inserted replaced
17571:2704c4e3e20a 17572:0d7c87cad133
7 7
8 " $LANG changes the output of Perl. 8 " $LANG changes the output of Perl.
9 if $LANG != '' 9 if $LANG != ''
10 unlet $LANG 10 unlet $LANG
11 endif 11 endif
12
13 " %:S does not work properly with 'shellslash' set
14 let save_shellslash = &shellslash
15 set noshellslash
12 16
13 e Xfoo.pl 17 e Xfoo.pl
14 compiler perl 18 compiler perl
15 call assert_equal('perl', b:current_compiler) 19 call assert_equal('perl', b:current_compiler)
16 call assert_fails('let g:current_compiler', 'E121:') 20 call assert_fails('let g:current_compiler', 'E121:')
25 call feedkeys(":make\<CR>\<CR>", 'tx') 29 call feedkeys(":make\<CR>\<CR>", 'tx')
26 let a=execute('clist') 30 let a=execute('clist')
27 call assert_match("\n 1 Xfoo.pl:3: Global symbol \"\$foo\" " 31 call assert_match("\n 1 Xfoo.pl:3: Global symbol \"\$foo\" "
28 \ . "requires explicit package name", a) 32 \ . "requires explicit package name", a)
29 33
34 let &shellslash = save_shellslash
30 call delete('Xfoo.pl') 35 call delete('Xfoo.pl')
31 bw! 36 bw!
32 endfunc 37 endfunc
33 38
34 func Test_compiler_without_arg() 39 func Test_compiler_without_arg()