mirror of
https://github.com/vim/vim.git
synced 2025-10-13 06:54:15 -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!
|
||||
elseif has('win32')
|
||||
" dir is a shell builtin command, should fail without a shell.
|
||||
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
|
||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2260,
|
||||
/**/
|
||||
2259,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user