patch 8.2.5094: MS-Windows GUI: empty command may cause a dialog

Problem:    MS-Windows GUI: empty command may cause a dialog.
Solution:   Delete the dialog file.  Improve the message.
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim
index a4c238e..db6797d 100644
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -246,8 +246,7 @@
   endif
 
   if filereadable('guidialogfile')
-    call add(v:errors, "Unexpected dialog:")
-    call add(v:errors, readfile('guidialogfile').join('\n'))
+    call add(v:errors, "Unexpected dialog: " .. readfile('guidialogfile')->join('<NL>'))
     call delete('guidialogfile')
   endif
 
diff --git a/src/testdir/test_ex_mode.vim b/src/testdir/test_ex_mode.vim
index d981ced..fafdda8 100644
--- a/src/testdir/test_ex_mode.vim
+++ b/src/testdir/test_ex_mode.vim
@@ -261,6 +261,9 @@
   call assert_equal(1, RunVim([], [], '-u NONE -e -s -S Xexmodescript'))
 
   call delete('Xexmodescript')
+
+  " This may cause a dialog to be displayed for an empty command, ignore it.
+  call delete('guidialogfile')
 endfunc