From a1d9eecc7aca3ada6689956e18cbbfc8efc2131f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 1 Apr 2023 19:14:18 +0200 Subject: [PATCH] Avoid failures in wxKill() unit tests under Windows 11 Apparently notepad can't be killed by sending WM_QUIT to its process under Windows 11 because the process we launch is not actually the GUI process showing the notepad window but some helper parent process. Work around this by launching mspaint, which can still be killed by wxKill(), instead. Closes #23365. --- tests/exec/exec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/exec/exec.cpp b/tests/exec/exec.cpp index ec0a22586e..40e420d142 100644 --- a/tests/exec/exec.cpp +++ b/tests/exec/exec.cpp @@ -36,7 +36,7 @@ #elif defined(__WINDOWS__) #define COMMAND "cmd.exe /c \"echo hi\"" #define COMMAND_STDERR "cmd.exe /c \"type nonexistentfile\"" - #define ASYNC_COMMAND "notepad" + #define ASYNC_COMMAND "mspaint" #define SHELL_COMMAND "echo hi > nul:" #define COMMAND_NO_OUTPUT COMMAND " > nul:" #else