tests: cover wrapper allocation failures for placed resources #2740
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2740
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2740/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?
@RonLogic on GitHub · 2026-11-26 04:52 UTC · original
RonLogic:test/placed-resource-wrapper-oom→main· +29 −1 · 2 files · 1 commits · merged 2026-11-26 05:02 UTCChange
Refs #2653 and #2656. Extend the existing
startup_wrap_allocationfixture to exercise both slot 133 resource creation paths. The test uses a committed synthetic page, a 256-byte buffer at a deliberately unaligned address, and a 4×4 RGBA8 texture. After the desktop resource is created, the existing injected wrapper failure must returnE_OUTOFMEMORYwith a null output. A retry at the same address must return a valid resource.Verification
Tested
056ea9f5on Windows26300.10075, MSVC 19.52 x64. The allocation fixture uses in-box WARP (10.0.26100.10068) and its registered debug-layer setting of off.Debug 2/2 and Release 5/5 passed without skips. The Release group included the memory-SRV diagnostics on WARP and RTX 4070 (
32.0.16.2124). The existing unarmed control reported both slot 133 failures withS_OKand a non-null output, proving the injected result is required.git diff --checkwas clean and the branch merged cleanly againsta766f287.The buffer case exercises the desktop stand-in for an unaligned placement. I used Codex to prepare the change and ran the verification locally.
@R0Y00 on GitHub · 2026-11-26 05:02 UTC · original · approved these changes
I independently ran the two Release startup_wrap_allocation WARP entries on
056ea9f5. Both passed, including the unarmed negative that reports a successful non-null output for the deliberately unaligned buffer and the placed texture. With injection both return E_OUTOFMEMORY and null, and retry at the original address succeeds. This is focused slot-133 coverage with no runtime change.