mirror of
https://github.com/vim/vim.git
synced 2025-10-12 06:44:06 -04:00
patch 8.1.2260: terminal test may fail on MS-Windows
Problem: Terminal test may fail on MS-Windows. Solution: Catch the situation that "term dir" fails with a CreateProcess error.
This commit is contained in:
@@ -2226,8 +2226,12 @@ func Test_terminal_shell_option()
|
|||||||
bwipe!
|
bwipe!
|
||||||
elseif has('win32')
|
elseif has('win32')
|
||||||
" dir is a shell builtin command, should fail without a shell.
|
" dir is a shell builtin command, should fail without a shell.
|
||||||
|
try
|
||||||
term dir /b runtest.vim
|
term dir /b runtest.vim
|
||||||
call WaitForAssert({-> assert_match('job failed\|cannot access .*: No such file or directory', term_getline(bufnr(), 1))})
|
call WaitForAssert({-> assert_match('job failed\|cannot access .*: No such file or directory', term_getline(bufnr(), 1))})
|
||||||
|
catch /CreateProcess/
|
||||||
|
" ignore
|
||||||
|
endtry
|
||||||
bwipe!
|
bwipe!
|
||||||
|
|
||||||
term ++shell dir /b runtest.vim
|
term ++shell dir /b runtest.vim
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2260,
|
||||||
/**/
|
/**/
|
||||||
2259,
|
2259,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user