test_base ExecTestCase, "wxExecute", "[exec]" fails on Windows 11 (Issue #25825)

26 views
Skip to first unread message

Richard Thomson

unread,
Sep 22, 2025, 7:41:08 PM (2 days ago) Sep 22
to wx-...@googlegroups.com, Subscribed
LegalizeAdulthood created an issue (wxWidgets/wxWidgets#25825)

Description

Bug description:

Running test_base on Windows 11 fails the wxExecute and wxProcess related tests because mspaint is not in the path. mspaint on Windows 11 is in %LOCALAPPDATA%\Microsoft\Apps which may not be in the user's path (it wasn't in mine) instead of in the system directory like it was on previous versions of windows and that can cause these tests to fail.

Expected vs observed behaviour:

It's probably better to control the program being run by building one in wxwidgets itself to use for the test. Then the tests wouldn't be dependent on the environment and the path to the wxwidgets built test program can be obtained with a CMake configure_file

To Reproduce:

  1. Make sure mspaint is not in your path, e.g. where mspaint says INFO: Could not find files for the given **pattern(s).**
  2. Run test_base
  3. wxExecute and wxProcess related tests that use ASYNC_COMMAND in tests\exec\exec.cpp will fail

Platform and version information

  • wxWidgets version
    ace3d4d936 2025-09-18 vadim Merge branch 'cmake-lib' of github.com:MaartenBent/wxWidgets
  • wxWidgets port wxMSW
  • OS Windows 11


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25825@github.com>

VZ

unread,
Sep 23, 2025, 8:35:46 AM (2 days ago) Sep 23
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#25825)

Thanks for reporting this. If there is some other command we could use which is still in PATH, I'd just use it instead for simplicity... Note that we can't use Notepad (see #23365).


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25825/3323831161@github.com>

Richard Thomson

unread,
Sep 23, 2025, 11:36:41 AM (2 days ago) Sep 23
to wx-...@googlegroups.com, Subscribed
LegalizeAdulthood left a comment (wxWidgets/wxWidgets#25825)

Yeah, I tried hacking it to use notepad and saw the same issue.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25825/3324543098@github.com>

PB

unread,
Sep 23, 2025, 12:39:21 PM (2 days ago) Sep 23
to wx-...@googlegroups.com, Subscribed
PBfordev left a comment (wxWidgets/wxWidgets#25825)

I have run where $path:*.exe and there don't see be many suitable candidates (i.e., Win32 apps available on all supported Windows versions) these days.

AFAICT, we need only to (a) launch and (b) kill this process, so no interaction is needed.

So, what about charmap.exe? There is also msinfo32.exe.

BTW, I do have the local app data folder in the PATH on Windows 11 Pro 24H2.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/25825/3324784404@github.com>

Reply all
Reply to author
Forward
0 new messages