Repository navigation
Shader tests: name the reason each native blob is refused - #330
Closed
SkippySteve wants to merge 1 commit into
Closed
SkippySteve wants to merge 1 commit into
SkippySteve wants to merge 1 commit into
Conversation
The corrupt-blob test only checked that native_programs fails, so a check could stop firing while an earlier one caught the same bytes. Each XDAT, XBCH, FSSM, record and stage-data refusal now has a case that expects its own message, with the boundaries that still pass (256 VGPRs, a patch ending at the code's last dword, out-of-range entries of other kinds).
Author
|
superseded by #333 (combined native.rs: SGPR bound + refusal tests) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: clean