In the situation where CRC calculation fails,
but no data miscompares were found, we print out
an error, but don't increment the error count.
This leads stressapptest to report "PASS" incorrectly.
We'll add an error count increment to fix the issue.
BUG=https://github.com/stressapptest/stressapptest/issues/56
TEST=add code to corrupt CRC, see "FAIL" as expected.
Signed-off-by: Nick Sanders <nsanders@chromium.org>
expectedcrc->ToHexString().c_str());
struct ErrorRecord er;
er.actual = sourcemem[0];
- er.expected = 0x0;
+ er.expected = 0xbad00000ull << 32;
er.vaddr = sourcemem;
ProcessError(&er, 0, "Hardware Error");
+ errors += 1;
+ errorcount_ ++;
}
}
}
er.expected = 0xbad;
er.vaddr = sourcemem;
ProcessError(&er, 0, "Hardware Error");
+ errors ++;
+ errorcount_ ++;
}
}
}