Repository navigation
e2e: the console screen may be hidden where DWM cannot cloak it - #1462
crastinator wants to merge 1 commit into
Conversation
The test title's window check required DWMWA_CLOAKED != 0. Under Wine, DwmGetWindowAttribute(DWMWA_CLOAKED) succeeds and reports 0 (no DWM cloaking), so the check failed with "W: not cloaked" on every Linux and macOS run. xcl-dev#794 makes XCL hide the window in that case and keep it hidden when the title shows it again (SWP_SHOWWINDOW stripped in WM_WINDOWPOSCHANGING). The check now accepts that, with xcl-dev#794's own condition: a window must be cloaked, or not visible. It also shows each window again (ShowWindow SW_SHOW, SetWindowPos SWP_SHOWWINDOW) and requires it to stay concealed, which covers the second half of xcl-dev#794 on every platform. The two windows and the class are cleaned up on every path, and a failed cleanup is reported.
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Tested Tested (MacBook Pro M5 Pro, macOS 27.2.1, CrossOver 26.3.0, D3DMetal 3.0, Rust 1.100.0
Not tested: Windows, AI use: Claude Code with Claude Opus 5.5 ran the tests and wrote this report. Update 11-29: on CrossOver 26.3, |
The e2e title's cloak check accepts a hidden screen where DWM cannot cloak (Wine), the green check for xcl-dev#794. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Nothing has happened on this PR for 3 days, so it is marked |
|
Still waiting for a maintainer. It still fixes the test title's window check, which fails #1481 changes the same check. The differences:
If maintainers prefer #1481, I'm happy to close this one. |
|
Test-only companion to #794 (which hides the window in AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
The e2e test title's window check required
DWMWA_CLOAKED != 0. Under Wine,DwmGetWindowAttribute(DWMWA_CLOAKED)returns S_OK withcloaked 0, since there is no DWM cloaking, so the check fails on every Linux and macOS run (W: not cloaked). #794 makes XCL hide the window in that case. This updates the check to match, and also tests the second half of #794: a title showing the window again must not bring it back. Part of #175; a test-only companion to #794.It is based on
main, not stacked on #794, so it stays test-only. Under Wine the check passes only once #794 is merged. On Windows the window is cloaked, so it passes as before.What is in it
tests/testtitle/src/main.rs, the user32 window check:ShowWindow(SW_SHOW)andSetWindowPos(SWP_SHOWWINDOW | SWP_NOACTIVATE)it must still be cloaked or hidden;cloakedvalue.Tested
-Db_ndebug=true, dxil-spirv53aac418from Linux: build vkd3d-proton with a dxil-spirv that structures the retail title's compute programs (#611) #775), DXVK v3.1.1-209dxgi, DXC 1.9.2609.5, libopus 1.5.2. Cross-built forx86_64-pc-windows-msvc(clang-cl / lld-link, xwin SDK 10.0.26100), Rust 1.99.1, debug. The test binaries ran under Wine.cargo test -p xcl --test e2e):bee31d5) merged[PASS], 3/3main)[FAIL] W: neither cloaked nor hidden (DwmGetWindowAttribute 0x0, cloaked 0)mainbefore this PR, with user: hide title console window when DWM cloaking is unavailable (#175) #794[FAIL] W: not cloakedpos.flags &= !SWP_SHOWWINDOWremoved (local control)[FAIL] W: shown after ShowWindow / SetWindowPos(SWP_SHOWWINDOW)cargo test --workspace --no-fail-fast -- --test-threads=4: 735 passed, 16 failed, 41 ignored, 0 SKIPPED (XCL_REQUIRE_GPU=wave64,mesh). These are the same failures as onmainunder Wine: Recompiler: v_rcp_f64 and v_rsq_f64 keep NaN, infinities and denormals #530 ×2, Tests: run the v_fma_f32 control of the no-contraction test on its own #676, [removed by author] #890 ×2 (+ e2e),pls_quotaTests: pls_quota expects ERROR_PATH_NOT_FOUND for a missing path below S:\, Wine returns ERROR_FILE_NOT_FOUND #810,predication_e2eTests: predication_e2e cannot pass under vkd3d-proton: it does not predicate copies #1272, main tip: jumps_to_outer_loop_heads_are_structured kills the whole lib test binary on Wine + RDNA3 (exit status 5), bisected to b8b1f49 #1246 and its 7-test parallel cascade (main tip: jumps_to_outer_loop_heads_are_structured kills the whole lib test binary on Wine + RDNA3 (exit status 5), bisected to b8b1f49 #1246).--test-threads=1: no test fails that passes onmain930e8b4.[PASS]×50, no[FAIL]). The e2e test then stops atreport.called_stubs: [](e2e.rs:164). That's a separate Wine issue, filed as Under Wine, report.json is not rewritten at a title's exit: the exe's TLS callback never gets DLL_PROCESS_DETACH #1461.Regression run
tests/testtitle).Not tested
813615con Windows 11, on an RTX 5070 Ti and on a Ryzen 9800X3D's RDNA2 iGPU: 751 passed, 0 failed, 41 ignored on both, so the cloaked branch and the show step pass on a real DWM (comment).XCL_SAMPLE_*set.AI use