| Index: src/trusted/validator_arm/decoder_tester.cc
|
| ===================================================================
|
| --- src/trusted/validator_arm/decoder_tester.cc (revision 8517)
|
| +++ src/trusted/validator_arm/decoder_tester.cc (working copy)
|
| @@ -27,12 +27,15 @@
|
| DecoderTester::DecoderTester()
|
| {}
|
|
|
| -void DecoderTester::ApplySanityChecks(Instruction inst,
|
| +bool DecoderTester::ApplySanityChecks(Instruction inst,
|
| const NamedClassDecoder& decoder) {
|
| UNREFERENCED_PARAMETER(inst);
|
| - EXPECT_EQ(&decoder, &ExpectedDecoder())
|
| + bool test = (&decoder == &ExpectedDecoder());
|
| + EXPECT_TRUE(test)
|
| << "Expected " << ExpectedDecoder().name() << " but found "
|
| << decoder.name() << " for " << InstContents();
|
| + NC_PRECOND(test);
|
| + return true;
|
| }
|
|
|
| void DecoderTester::TestAtIndex(int index) {
|
|
|