test: name the stale fixture DLL when an export is missing #1915
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1922"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T21:20:30Z.
What
tests/cpu/x87_add.pyresolves a fixture export withgetattr(self.lib, name). When a variant DLL is stale — which happenswhenever a partial build leaves one of the eleven apart — that raises
which names neither the file nor the reason. I hit it twice reviewing #1861 and misread it as a broken fixture both times.
Change
One helper, used by both call sites (
__call__andwith_live_value):self.pathis stored in__init__for the message. No behaviour changes when the export is present.Tested
Negative control, end to end: remove
legacy_controlsfromtests/cpu/x87_examine.def, rebuild onlycpu_x87_examine(leaving the variants as they are), run the fixture:then restore the
.defand rebuild:So the message fires on the real path with the real file name, not only in a unit test of the wrapper.
Scope
One file, one helper, one stored attribute. No fixture, no CMake and no production code changes; every x87 check that consumes
this module still passes.
Notes
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T21:23:26Z.
Review: COMMENTED
Review of #1922 at head
8730bc1204(tier TIER_B_TESTS, file tests/cpu/x87_add.py). No P1/P2 defects.Commands run locally:
The change wraps getattr(self.lib, name) so a missing export raises an AssertionError that names the stale DLL. It adds no assertion and no new expected value. The only code path it touches is the failure message of a missing export, so there is no mutation of tools/ or src/ logic that this change makes any test fail. Reverting the wrapper only brings back the raw AttributeError.
Result: the change is a diagnostic improvement and does not pass the quality filter for a safe-merge. No receipt written, not merged. The GitHub check "Build and test on Windows" was still pending at review time. A maintainer can merge it by hand if the clearer message is wanted.
AI-assisted; commands listed were executed locally.