Repository navigation
e2e: the console screen may be hidden where DWM cannot cloak it - #1462
Open
crastinator wants to merge 1 commit into
Open
crastinator wants to merge 1 commit into
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
|
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, XAudio2: GetState names the oldest queued buffer when the host gives none #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