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:
parent
13ebaee247
commit
a1d9eecc7a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue