diff options
| author | 2014-08-08 17:50:02 +0000 | |
|---|---|---|
| committer | 2014-08-08 16:09:50 +0000 | |
| commit | 76c95026eafdd1e2766122002323f7794afd7554 (patch) | |
| tree | a5f239de330b37a6f830ebae6420fe66bac86623 /compiler/utils/assembler_test.h | |
| parent | 1d84f85cfd5693cea6872cff326b7ba881ebf7d9 (diff) | |
| parent | 54e15de4a3ea869488d50694fa01138901e70c4e (diff) | |
Merge "ART: Make assembler_test less chatty"
Diffstat (limited to 'compiler/utils/assembler_test.h')
| -rw-r--r-- | compiler/utils/assembler_test.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/utils/assembler_test.h b/compiler/utils/assembler_test.h index 05ac70ed74..37429131ef 100644 --- a/compiler/utils/assembler_test.h +++ b/compiler/utils/assembler_test.h @@ -361,12 +361,15 @@ class AssemblerTest : public testing::Test { } else { if (DisassembleBinaries(*data, *res.code, test_name)) { if (data->size() > res.code->size()) { - LOG(WARNING) << "Assembly code is not identical, but disassembly of machine code is " - "equal: this implies sub-optimal encoding! Our code size=" << data->size() << + // Fail this test with a fancy colored warning being printed. + EXPECT_TRUE(false) << "Assembly code is not identical, but disassembly of machine code " + "is equal: this implies sub-optimal encoding! Our code size=" << data->size() << ", gcc size=" << res.code->size(); } else { + // Otherwise just print an info message and clean up. LOG(INFO) << "GCC chose a different encoding than ours, but the overall length is the " "same."; + Clean(&res); } } else { // This will output the assembly. |