]> granicus.if.org Git - vim/commitdiff
patch 8.1.2260: terminal test may fail on MS-Windows v8.1.2260
authorBram Moolenaar <Bram@vim.org>
Tue, 5 Nov 2019 21:38:47 +0000 (22:38 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 5 Nov 2019 21:38:47 +0000 (22:38 +0100)
Problem:    Terminal test may fail on MS-Windows.
Solution:   Catch the situation that "term dir" fails with a CreateProcess
            error.

src/testdir/test_terminal.vim
src/version.c

index 10e107553f2aaad035adfe1094c371b837ca7d9b..43a93847a98329ad1ff0a26fad2ca741267dcb20 100644 (file)
@@ -2226,8 +2226,12 @@ func Test_terminal_shell_option()
     bwipe!
   elseif has('win32')
     " dir is a shell builtin command, should fail without a shell.
-    term dir /b runtest.vim
-    call WaitForAssert({-> assert_match('job failed\|cannot access .*: No such file or directory', term_getline(bufnr(), 1))})
+    try
+      term dir /b runtest.vim
+      call WaitForAssert({-> assert_match('job failed\|cannot access .*: No such file or directory', term_getline(bufnr(), 1))})
+    catch /CreateProcess/
+      " ignore
+    endtry
     bwipe!
 
     term ++shell dir /b runtest.vim
index 0a210b6ea4891e4927f0053f633215d559f910da..4fd069488af5b82f5b226ca69b1a2058d6722615 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2260,
 /**/
     2259,
 /**/