From ee98b2e09d04687d53857ed4b1fe18695dd9795f Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Fri, 15 Nov 2024 17:21:36 -0800 Subject: [PATCH] [Test] fix typo in CompileToShaderHash which compares same value. (#6999) 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;