]> granicus.if.org Git - vim/commitdiff
patch 8.1.1783: MS-Windows: compiler test may fail when using %:S v8.1.1783
authorBram Moolenaar <Bram@vim.org>
Wed, 31 Jul 2019 20:18:22 +0000 (22:18 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 31 Jul 2019 20:18:22 +0000 (22:18 +0200)
Problem:    MS-Windows: compiler test may fail when using %:S.
Solution:   Reset 'shellslash'.

src/testdir/test_compiler.vim
src/version.c

index 46c14d8bc391a3f496e72ae42307a1cd59f2dcf4..f561e84a3818e3a65b6f0bb04a80af9e54f87921 100644 (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
index 03cccfb06a2920a01367ef8fd2f0965db4db45b4..b8734711de1778a89c01fec991fd99df53482f81 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1783,
 /**/
     1782,
 /**/