Repository navigation
Apply CTest environment modifications under Wine - #4378
AGInformatique81 wants to merge 2 commits into
Conversation
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 3c349e21 on Windows 11: python -I tests/test_run_wine_tests.py -> 52 tests, OK (5 skipped); git diff --check clean.
CTest environment modifications are now applied under Wine as well, and the existing runner tests pass. No blocking issue.
|
Tested 3c349e2 on Arch Linux (in a VM), CPython 3.14: Code read against CMake 4.5.1's
Nothing in |
|
Thanks for checking what the Windows child receives. Addressed in I checked the same three synthetic drive-letter paths with CTest 4.5.1 on Windows and with AI-assisted with Codex. |
Flyander
left a comment
There was a problem hiding this comment.
This replays CTest environment edits in order on the child copy, with reset based on the per-test ENVIRONMENT values. The path-list separator was corrected to Windows ; semantics for the Windows-built inventory running under Wine, and the regression checks it against Windows CTest behavior.
|
Retested 9beff02 on Arch Linux (in a VM), CPython 3.14: |
zzEmmazz
left a comment
There was a problem hiding this comment.
Independent recheck of current head 9beff02 (TEST-955): the separator correction matches a real Windows CTest inventory.
I generated a synthetic inventory with Windows CMake/CTest 4.1.1-msvc1 using ENVIRONMENT LX_PATH=middle and ordered path_list_prepend:first, path_list_append:last. Windows CTest executes it with first;middle;last. Feeding those exact JSON properties to the Linux helper at 3c349e21 gives first:middle:last; current 9beff025 gives first;middle;last, matching the oracle.
Runner suite: Linux under WSL/Python 3.13.3, 52/52 pass; Windows 11/Python 3.14.0, 52 tests OK with 5 POSIX skips. Integration with #4359 applies cleanly; with the separate TEST-962 ownership follow-up (#4446), all 57 tests pass on Linux and Windows has 57 OK with 10 POSIX skips. Ordering, reset-to-ENVIRONMENT, invalid-operation failure and child-local scope remain covered. No defect found in the environment-modification change at this head.
Synthetic inputs only; no Wine installation, GPU or game files. AI-assisted (Codex).
|
Approved. All nine documented ops (reset/set/unset/string/path_list/cmake_list prepend/append) are applied in order after Minor: Approve. AI-assisted review, no game files, no GPU. |
Change
Apply CTest's
ENVIRONMENT_MODIFICATIONentries in order, afterENVIRONMENT, in the child process only. Support reset, set, unset and ordered string/path/CMake-list edits. A malformed entry fails the affected test before it starts.Coordination claim: #4257 (comment)
Testing
python3 -I tests/test_run_wine_tests.py.Synthetic tests only. No Wine installation, GPU, driver or game data. AI-assisted with Codex.