From e3484cd353c7750cc5459a370d984efb59a13433 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Tue, 5 Nov 2024 18:56:35 -0500 Subject: [PATCH] [Test] fix typo in CompileToShaderHash which compares same value. Compare hashFromPart and hashFromResult. Fixes #5147 --- tools/clang/unittests/HLSL/DxilContainerTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/clang/unittests/HLSL/DxilContainerTest.cpp b/tools/clang/unittests/HLSL/DxilContainerTest.cpp index f9d462faa7..a1533ae19f 100644 --- a/tools/clang/unittests/HLSL/DxilContainerTest.cpp +++ b/tools/clang/unittests/HLSL/DxilContainerTest.cpp @@ -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;