Skip to content

Commit

Permalink
[Test] fix typo in CompileToShaderHash which compares same value.
Browse files Browse the repository at this point in the history
Compare hashFromPart and hashFromResult.

Fixes #5147
  • Loading branch information
python3kgae committed Nov 5, 2024
1 parent ac36a79 commit e3484cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/clang/unittests/HLSL/DxilContainerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ class DxilContainerTest : public ::testing::Test {
VERIFY_SUCCEEDED(pDxcResult->GetOutput(
DXC_OUT_SHADER_HASH, IID_PPV_ARGS(&pHashBlob), nullptr));
std::string hashFromResult = RetrieveHashFromBlob(pHashBlob);
VERIFY_ARE_EQUAL(hashFromPart, hashFromPart);
VERIFY_ARE_EQUAL(hashFromPart, hashFromResult);
}

return hashFromPart;
Expand Down

0 comments on commit e3484cd

Please sign in to comment.