forked from aniani/vim
patch 8.2.5112: gui test hangs on MS-Windows
Problem: Gui test hangs on MS-Windows. Solution: Use "!start" to start Vim.
This commit is contained in:
@@ -1594,7 +1594,11 @@ func Test_gui_dialog_file()
|
||||
confirm qa
|
||||
END
|
||||
call writefile(lines, 'Xlines')
|
||||
execute '!' .. GetVimCommand() .. ' -g -f --clean --gui-dialog-file Xdialog -S Xlines'
|
||||
let prefix = '!'
|
||||
if has('win32')
|
||||
let prefix = '!start '
|
||||
endif
|
||||
execute prefix .. GetVimCommand() .. ' -g -f --clean --gui-dialog-file Xdialog -S Xlines'
|
||||
|
||||
call WaitForAssert({-> assert_true(filereadable('Xdialog'))})
|
||||
call assert_match('Question: Save changes to "Xfile"?', readfile('Xdialog')->join('<NL>'))
|
||||
|
@@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
5112,
|
||||
/**/
|
||||
5111,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user