]> granicus.if.org Git - vim/commitdiff
patch 8.2.1369: MS-Windows: autocommand test sometimes fails v8.2.1369
authorBram Moolenaar <Bram@vim.org>
Wed, 5 Aug 2020 10:02:40 +0000 (12:02 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 5 Aug 2020 10:02:40 +0000 (12:02 +0200)
Problem:    MS-Windows: autocommand test sometimes fails.
Solution:   Do not rely on the cat command.

src/testdir/test_autocmd.vim
src/version.c

index 70fbe01c0fc008678072d38f3b5ae58bfc939a7c..e6c7ec03c342e62b002c6404b0b618b1acf42fed 100644 (file)
@@ -1618,7 +1618,7 @@ func Test_change_mark_in_autocmds()
   write
   au! BufWritePre
 
-  if executable('cat')
+  if has('unix')
     write XtestFilter
     write >> XtestFilter
 
index 2609eb7e08d9e11d9469d0f07d33fd6a46a4f5ef..a0f4593b2d7d598df294f8069415f573f281c92c 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1369,
 /**/
     1368,
 /**/