Repository navigation
Fail Wine tests with invalid mapped working directories - #4547
AGInformatique81 wants to merge 1 commit into
Conversation
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 26d24733 on Windows 11: python -I tests/test_run_wine_tests.py -> 51 tests, OK (5 skipped); git diff --check clean.
A Wine test with an invalid mapped working directory now fails with the directory error instead of running in the wrong place; the runner tests pass. No blocking issue.
|
Tested
AI-assisted (Devin). |
|
PASS. Non-blocking gap: a listed Approve. AI-assisted review, no game files, no GPU. |
When a CTest
WORKING_DIRECTORYmaps inside the local checkout but the mapped path is missing or is a file, the Wine runner used to launch the test in the executable's directory. The test could then succeed with the wrong working directory. Report that test as failed before launch and include both paths. The fallback for entries without a mapped working directory stays as it is.Native CTest 4.5.1 reported
Not Runfor a synthetic test with an explicitly missing working directory. The Wine runner's new regression covers both a missing directory and a file at the mapped path. Both cases falsely passed on main. A synthetic CLI run also confirmed the runner continues with the next test and exits 1 when the failing test is required.python -I tests/test_run_wine_tests.pyon Windows 11 / CPython 3.15.2: 46 passed, 5 POSIX-only skips.python3 -I tests/test_run_wine_tests.pyon WSL / CPython 3.14.7: 51 passed.Claimed as a new TEST item in the coordination thread. This PR builds directly on main. AI-assisted with Codex.