]> granicus.if.org Git - vim/commitdiff
patch 8.2.5112: gui test hangs on MS-Windows v8.2.5112
authorBram Moolenaar <Bram@vim.org>
Thu, 16 Jun 2022 15:36:43 +0000 (16:36 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 16 Jun 2022 15:36:43 +0000 (16:36 +0100)
Problem:    Gui test hangs on MS-Windows.
Solution:   Use "!start" to start Vim.

src/testdir/test_gui.vim
src/version.c

index 954cf2a0660c2f4005782a7b39ef5aaa6a349795..373a0a25ce8a1df6c7f759f48e9ea35ecd50646d 100644 (file)
@@ -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>'))
index a438340d6e897e5ef7b2b31f924521d3074d4275..66b03c3ab75a3cc7297a61e1944f3bc3b898d988 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5112,
 /**/
     5111,
 /**/