Skip to content

Commit

Permalink
chore: autopublish 2025-01-17T02:12:25Z
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 17, 2025
1 parent 4bc8379 commit efea0a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/clang/unittests/HLSL/ValidationTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1222,11 +1222,12 @@ TEST_F(ValidationTest, ValidationFailNoHash) {
// Make sure the validation output is not null even when validation fails
VERIFY_SUCCEEDED(pValidationOutput != nullptr);

hlsl::DxilContainerHeader *pHeader =
IsDxilContainerLike(pProgram->GetBufferPointer(), pProgram->GetBufferSize());
hlsl::DxilContainerHeader *pHeader = IsDxilContainerLike(
pProgram->GetBufferPointer(), pProgram->GetBufferSize());
VERIFY_IS_NOT_NULL(pHeader);

BYTE Result[DxilContainerHashSize] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
BYTE Result[DxilContainerHashSize] = {0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0};
// ComputeHashRetail(DataToHash, AmountToHash, Result);
// Should be unequal, this proves the hash isn't written when validation fails
VERIFY_ARE_EQUAL(memcmp(Result, pHeader->Hash.Digest, sizeof(Result)), 0);
Expand Down

0 comments on commit efea0a0

Please sign in to comment.