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.
This commit is contained in:
Vadim Zeitlin 2023-04-01 19:14:18 +02:00
parent 13ebaee247
commit a1d9eecc7a

View file

@ -36,7 +36,7 @@
#elif defined(__WINDOWS__) #elif defined(__WINDOWS__)
#define COMMAND "cmd.exe /c \"echo hi\"" #define COMMAND "cmd.exe /c \"echo hi\""
#define COMMAND_STDERR "cmd.exe /c \"type nonexistentfile\"" #define COMMAND_STDERR "cmd.exe /c \"type nonexistentfile\""
#define ASYNC_COMMAND "notepad" #define ASYNC_COMMAND "mspaint"
#define SHELL_COMMAND "echo hi > nul:" #define SHELL_COMMAND "echo hi > nul:"
#define COMMAND_NO_OUTPUT COMMAND " > nul:" #define COMMAND_NO_OUTPUT COMMAND " > nul:"
#else #else