Skip to content

Commit

Permalink
[Test] Fix typo in RunDxcHashTest (#5583)
Browse files Browse the repository at this point in the history
Compare hash0 and hash1 instead of hash0 and hash0.
  • Loading branch information
python3kgae authored Aug 22, 2023
1 parent f6a90f0 commit 1046046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/clang/unittests/HLSLTestLib/FileCheckerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ FileRunCommandResult FileRunCommandPart::RunDxcHashTest(dxc::DxcDllSupport &DllS
return FileRunCommandResult::Error("Adding Qstrip_reflect and Zi failed compilation.");
}

if (pHash0->GetBufferSize() != pHash1->GetBufferSize() || 0 != memcmp(pHash0->GetBufferPointer(), pHash0->GetBufferPointer(), pHash1->GetBufferSize())) {
if (pHash0->GetBufferSize() != pHash1->GetBufferSize() || 0 != memcmp(pHash0->GetBufferPointer(), pHash1->GetBufferPointer(), pHash1->GetBufferSize())) {
StdErr = "Hashes do not match between normal and debug!!!\n";
StdErr += Output0;
StdErr += Output1;
Expand Down

0 comments on commit 1046046

Please sign in to comment.