Tests under Wine: Windows' own answers are checked only on Windows #213
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!213
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/213/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@BlestTerror on GitHub · 2026-11-23 21:07 UTC · original
BlestTerror:tests/wine-host-differences→main· +28 −6 · 5 files · 1 commits · merged 2026-11-23 21:24 UTCThree
--libtests compared XCL with the host's own Win32 behaviour, which Wine does not reproduce. XCL's answers are the Windows ones in all three:GetProcAddress(module, NULL): Windows setsERROR_INVALID_PARAMETER, WineERROR_PROC_NOT_FOUND. XCL's code is now checked againstERROR_INVALID_PARAMETER, the host's only on Windows.CreateFileWon a directory withFILE_FLAG_BACKUP_SEMANTICS+TRUNCATE_EXISTING: Wine answersERROR_FILE_EXISTS. The VFS decision is still checked against the Windows codes.MoveFileExWinside the overlay: Wine succeeds but keeps the old name, so the overlay entry is compared without case there.The Wine check from the loader (#93) is now
util::under_wine().Wine 11.20, cross-built
x86_64-pc-windows-msvc: non-GPU, non-d3d12xtests 229 passed / 3 failed → 232 / 0. Not run on Windows here; the Windows assertions are unchanged except that theGetProcAddressone names the code. Related: #175 (Linux), #200 (another windows-gnu / Wine test fix). Rebased oneaa36b6.🤖 Generated with Claude Code
@Kalmarv on GitHub · 2026-11-23 21:11 UTC · original
Ran this on a Wine stack other than yours: Kron4ek's Wine 11.21 Staging (wow64 build), so
under_wine()gets checked on a second Wine build. On it, this PR turns exactly the three Wine-only failures into passes, and nothing else changes.Tested
master30b0eb9 (relaxed as in #175) and DXVK 3.1.1dxgi.x86_64-pc-windows-gnu(mingw-w64 13), release.maineaa36b6vs this PR8fde77a(based oneaa36b6, so head = merge result). Full--lib,--test-threads=1, GPU tests included.maineaa36b68fde77aThe three that flip to passing:
hle::kernelx::tests::get_proc_address_and_load_library_ex_reject_null_namevfs::tests::truncate_existing_validation_errorsvfs_hooks::tests::move_case_only_and_self_rename_preserve_fileThat means
under_wine(), i.e.wine_get_versionin ntdll, detects this build. Without it, these three would fail as they do onmain.Nothing real is hidden:
GetProcAddress(NULL)code isERROR_INVALID_PARAMETER,open_decisionreturnsDecision::Fail(expected), and the overlay holds one entry equal toHello.txtignoring case. Only the comparison with the host's own answer is skipped under Wine.GetProcAddressassertion is stricter than before: XCL is checked against the fixed code, and the host is checked as well.MoveFileExW, not XCL.The 7 left are not Wine API differences:
userfaultfdwrite watches, explained in #175.legacy_console_iids_map_to_their_own_slotscomes from the windows-gnu build (two copies ofregister_token4); #200 fixes it (merged in6da33fa).list_x::tests::draw_indexed_x_routes_through_bind_and_restores_index_bufferpasses alone (2 of 2) and fails only in the full run, onmainand here alike. An earlier test has opened UMA, so the index buffer at0x100001000is outside it and gets mirrored ("each draw copies what it reads"), and the assertion atlist_x.rs:2971sees the mirror's address. It's an ordering dependence between tests, not a Wine one. It may show up on Windows too in a full run.My first full run of
mainlost the device (0x887a0005) ingpu_float_compares_random, and 46 more GPU tests failed after it. The rerun had no device loss, and that rerun is the row above. The card is shared with other services on this machine, so I count it as transient.Not tested
x86_64-pc-windows-msvcbuild.HideWineExportsset (Staging can hidewine_get_version; detection would then say "not Wine").--libfailures here, because this stack uses a relaxed build.AI use: Claude Code, Claude Opus 5.5
@BlestTerror on GitHub · 2026-11-23 21:18 UTC · original
Thanks for running it on a second Wine build. On the
list_xone you were right that it's the copy, not a Wine difference: bisecting the 319 tests before it, the one that leaves the state isgpu_sparse_vram_descriptors_buffers_and_xmem(its sparse VRAM windows map memory at0x1_0000_xxxx, so the fixed index-buffer addresses become readable and the draw binds a copy). Fix in #224: the test reserves its own inaccessible addresses.@BlestTerror on GitHub · 2026-11-23 21:21 UTC · original
Correction to the above: the
list_xfix to look at is #222 (Kalmarv's, opened first); #224 was the same change and is closed as its duplicate.@ivall on GitHub · 2026-11-23 21:24 UTC · original
Merged (main
d4f17ca). Checked on an RX 9070 (RDNA4) with 11 PRs merged together on mainaf20b4b:cargo build --workspace && cargo test --workspace -- --test-threads=4- 605 unit tests passed, 0 failed (20 ignored), the integration and e2e tests passed; and the retail game still reaches its first menu at 30 fps (720 draws per 2 s).