changeset 30128:6d0056cc21a0 v9.0.0400

patch 9.0.0400: GUI test sometimes hangs on CI Commit: https://github.com/vim/vim/commit/e68f1348f25766c669e27e1f7da2453c46e4c981 Author: K.Takata <kentkt@csc.jp> Date: Wed Sep 7 13:01:11 2022 +0100 patch 9.0.0400: GUI test sometimes hangs on CI Problem: GUI test sometimes hangs on CI. Solution: Delete a test file explicitly. (Ken Takata, closes https://github.com/vim/vim/issues/11072)
author Bram Moolenaar <Bram@vim.org>
date Wed, 07 Sep 2022 14:15:06 +0200
parents 20cc510421ae
children 0df336fa3ecb
files src/testdir/test_gui.vim src/version.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_gui.vim
+++ b/src/testdir/test_gui.vim
@@ -1607,12 +1607,15 @@ func Test_gui_CTRL_SHIFT_V()
 endfunc
 
 func Test_gui_dialog_file()
+  " make sure the file does not exist, otherwise a dialog makes Vim hang
+  call delete('Xdialfile')
+
   let lines =<< trim END
     file Xdialfile
     normal axxx
     confirm qa
   END
-  call writefile(lines, 'Xlines')
+  call writefile(lines, 'Xlines', 'D')
   let prefix = '!'
   if has('win32')
     let prefix = '!start '
@@ -1624,7 +1627,6 @@ func Test_gui_dialog_file()
 
   call delete('Xdialog')
   call delete('Xdialfile')
-  call delete('Xlines')
 endfunc
 
 " Test for sending low level key presses
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    400,
+/**/
     399,
 /**/
     398,