Skip to content

Commit ee98b2e

Browse files
authored
[Test] fix typo in CompileToShaderHash which compares same value. (microsoft#6999)
Compare hashFromPart and hashFromResult. Fixes microsoft#5147
1 parent ac36a79 commit ee98b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/clang/unittests/HLSL/DxilContainerTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ class DxilContainerTest : public ::testing::Test {
599599
VERIFY_SUCCEEDED(pDxcResult->GetOutput(
600600
DXC_OUT_SHADER_HASH, IID_PPV_ARGS(&pHashBlob), nullptr));
601601
std::string hashFromResult = RetrieveHashFromBlob(pHashBlob);
602-
VERIFY_ARE_EQUAL(hashFromPart, hashFromPart);
602+
VERIFY_ARE_EQUAL(hashFromPart, hashFromResult);
603603
}
604604

605605
return hashFromPart;

0 commit comments

Comments
 (0)