Repository navigation
tests: follow the f-suffixed literals in three shader fixtures - #3622
Conversation
|
@KelboLive, #3616 merged at 15:46 with the same |
R0Y00#3568 writes binary32 literals with an f suffix, so the patterns three fixtures mutate stopped matching: startup_image_sample_b_flow_check and startup_image_get_lod_flow_check failed in mutants() on None, and startup_gfx2hlsl_cvt_off_f32_i4_check found no saturate/multiply to swap. The patterns accept or capture the suffix. The native_direct_mesh clamp case is already fixed on main, so it is not part of this change.
d29539b to
8c52954
Compare
R0Y00
left a comment
There was a problem hiding this comment.
Reviewed the three fixture-only changes at this revision. The mutations still exercise the original negative controls, and the replacement preserves the literal suffix. Windows Debug/WARP 3/3 via ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^(startup_image_(sample_b|get_lod)_flow_warp|startup_gfx2hlsl_cvt_off_f32_i4_warp)$'.
Change
#3568 writes binary32 literals with an
fsuffix, so the patterns three fixtures mutate stopped matching:startup_image_sample_b_flow_check.pymutants()matched nothing and failed onNoneType.groupstartup_image_get_lod_flow_check.pystartup_gfx2hlsl_cvt_off_f32_i4_check.pyThe fourth case from #3621,
native_direct_mesh, is already fixed onmainby #3616 (9cb905e4f), with astronger assertion than I had: it checks the clamped values are wired into
setMeshOutputCounts. This branchnow leaves that file alone.
Verification
In-box dev preset, rebased onto
cf43986db:The two flow fixtures and the
cvt_offfixture run their full pixel comparisons and mutation checks afterthe pattern change, so the parsers are exercised rather than skipped.
Why nobody saw it
None of the three runs in the
prpreset, so each merged green and only failed onmain. #3606 added theslot 86 heap checks to that preset; #3554 is the case for extending it to these fixtures.
Refs #3621 (three of its four cases; the fourth is #3616).