chiark / gitweb /
Fix CRC error reporting
authorNick Sanders <nsanders@chromium.org>
Mon, 11 Dec 2017 19:59:16 +0000 (11:59 -0800)
committerNick Sanders <nsanders@chromium.org>
Mon, 11 Dec 2017 20:07:48 +0000 (12:07 -0800)
commit0f05a3e13a382eda453166789f49b144a55f4b10
tree0188e726d0590dc9096775c789cbb6e18bf9d164
parent4c4bd7393ee5b58f22d5cf81ab89e3923519da2c
Fix CRC error reporting

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>
src/worker.cc