Shader tests: name the reason each native blob is refused #330
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/330"
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 Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T02:20:51Z.
rejects_corrupt_blobsinvictory-shader/src/native.rsonly assertsis_err(). So if one check stopped firing, the test would still pass whenever a later check happened to catch the same bytes.This adds tests only (no behaviour change). Each
Malformedreasonnative_programscan return now has a case that expects that exact message:All blobs are built in the test by the existing synthetic
fssm/xbch/parthelpers. There is no title data.Tested on Linux:
cargo test -p victory-shader: 61 passedcargo clippy -p victory-shader --all-targets: no new warnings. The one warning,constant_colorunused inemit/mod.rs, is already onmain.cargo fmt --check: cleanImported from Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T02:22:47Z.
superseded by #333 (combined native.rs: SGPR bound + refusal tests)
Pull request closed