Skip to content

Commit 1046046

Browse files
authored
[Test] Fix typo in RunDxcHashTest (microsoft#5583)
Compare hash0 and hash1 instead of hash0 and hash0.
1 parent f6a90f0 commit 1046046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/clang/unittests/HLSLTestLib/FileCheckerTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ FileRunCommandResult FileRunCommandPart::RunDxcHashTest(dxc::DxcDllSupport &DllS
419419
return FileRunCommandResult::Error("Adding Qstrip_reflect and Zi failed compilation.");
420420
}
421421

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

0 commit comments

Comments
 (0)