From 2d12c25a1b73fb6991006fd970b3132ab8ee8b62 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 13 Jun 2022 21:42:45 +0100 Subject: patch 8.2.5084: when the GUI shows a dialog tests get stuck Problem: When the GUI shows a dialog tests get stuck. Solution: Add the --gui-dialog-file argument. --- src/testdir/runtest.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/testdir/runtest.vim') diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim index 766f983cf9..a4c238e8a2 100644 --- a/src/testdir/runtest.vim +++ b/src/testdir/runtest.vim @@ -245,6 +245,12 @@ func RunTheTest(test) call popup_clear(1) endif + if filereadable('guidialogfile') + call add(v:errors, "Unexpected dialog:") + call add(v:errors, readfile('guidialogfile').join('\n')) + call delete('guidialogfile') + endif + " Close any extra tab pages and windows and make the current one not modified. while tabpagenr('$') > 1 let winid = win_getid() -- cgit v1.2.3