Repository navigation
Tests: capture the truncate error before checking for Wine - #633
WebIdentity1 wants to merge 1 commit into
Conversation
The first under_wine call looks up wine_get_version and leaves error 127 on native Windows. Saving CreateFileW's error immediately keeps the test independent of whether another fixture has already initialized that check. The exact isolated test failed before this change and passes after it.
|
Independent validation on my RTX 4060. I previously encountered this exact failure while working on #644, and can confirm that this patch resolves it. Tested
Commands cargo test --locked -p xcl --lib vfs::tests::truncate_existing_validation_errors -- --exact --show-output
cargo test --locked -p xcl --lib vfs::tests:: -- --test-threads=4 --show-output
cargo build --workspace --locked
cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-outputThe full workspace run completed with exit code 0, without reproducing the reported GPU stalls or CLAMP failure. The worktree remained clean. Two explicit capability skips, included in the passed count:
The diff only changes when the test captures I support the maintainer-reviewed Not tested: Wine, release, native wave64, retail titles, optional external samples or a full baseline workspace run. AI use: ChatGPT (GPT-6.2) assisted with review, test planning, log analysis and reporting. All commands were executed locally by me. |
|
The equivalent test-only fix is now on main in d78597d: capture GetLastError immediately after CreateFileW, before under_wine can overwrite it. I compared both diffs; only the variable name and explanatory comment differ. Closing this duplicate draft. The tested branch and original before/after evidence remain available. AI use: Codex (GPT-6) checked the landed code and prepared this update. |
truncate_existing_validation_errorsfails by itself on native Windows with 127 instead of the expected 5. Its firstunder_wine()call looks upwine_get_versionbetweenCreateFileWandGetLastError, overwriting the error being tested. Capture that error immediately. Found while validating #618; independent of its runtime change.What is in it
vfs.rstest. Assertions and Wine handling are preserved; no runtime behavior changes.Tested
bd6116452e990a0af69dd21eef4cc673364fe013, base3db536ebe231418d76e8d6e52ccee0b47330a522. Native Windows 10 build 19045, Ryzen 7 7800X3D, RTX 3090 driver 591.74 plus AMD integrated driver 32.0.21030.2001, Rust 1.98.1 MSVC, SDK DXC 1.8.2502.11, Agility 1.620.2, debug.cargo test --locked -p xcl --lib vfs::tests::truncate_existing_validation_errors -- --exact --show-output: baseline 0 passed / 1 failed / 0 ignored; candidate 1 / 0 / 0, no skips.cargo test --locked -p xcl --lib vfs::tests:: -- --test-threads=4 --show-output: 10 / 0 / 0, no skips.cargo build --locked --workspacepassed. Four-thread full workspace attempt timed out at 180 s withgpu_uma_import_check_at_init,large_heaps_get_shared_pages_as_used,slots_copy_and_release, andcopy_descriptors_remaps_xbox_extra_cbv_srv_uav_to_pc_enumstalled (also observed on untouched main during VFS: reject creation beneath existing virtual files #618 validation).cargo test --locked --workspace --no-fail-fast -- --test-threads=1 --show-output: 685 passed / 1 failed / 41 ignored. Only the previously observedgpu_clamp_and_omod_per_instructionfailed. This is a serial result, not a completed four-thread run.gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no native wave64 on NVIDIA),test_title_draws_with_a_root_signature_under_the_debug_layer,uploads_start_from_each_subresources_state(debug layer unavailable). Sample variables unset. Presentation tests ran in desktop session1; some fixtures select AMD directly despiteXCL_ADAPTER=3090.Regression run
Not run: no retail title available. #507 has now added a maintainer-reviewed
test-onlyexemption for this situation (#452). Please consider that label after reviewing this exact test-only revision; the draft still needs the other required checks. No runtime change or smoke evidence is claimed.Not tested
Wine, release builds, retail titles. Full four-thread run did not complete; keeping this draft pending required checks.
AI use
Codex (GPT-6) isolated the failure, made the test-only change, ran native Windows validation and prepared the description.