@@ -97,14 +97,15 @@ void TestInstruction::instruction_code_from_str() {
97
97
code_to_string[i].code , qPrintable (test_string_data), code);
98
98
QCOMPARE (code, code_to_string[i].code );
99
99
} catch (const Instruction::ParseError &e) {
100
-
101
- TokenizedInstruction inst = TokenizedInstruction::from_line (test_string_data, Address (0x0 ), nullptr , 0 );
100
+ TokenizedInstruction inst
101
+ = TokenizedInstruction::from_line (test_string_data, Address (0x0 ), nullptr , 0 );
102
102
103
103
printf (
104
- " test_case: { base: %s, len: %d code: %x, test_string_data: %s}, output: { code: %x "
104
+ " test_case: { base: %s, len: %d code: %x, test_string_data: %s}, output: { code: "
105
+ " %x "
105
106
" }\n " ,
106
- qPrintable (inst.base ), code_to_string[i].str .length (),
107
- code_to_string[i]. code , qPrintable (test_string_data), code);
107
+ qPrintable (inst.base ), code_to_string[i].str .length (), code_to_string[i]. code ,
108
+ qPrintable (test_string_data), code);
108
109
109
110
printf (" exception: %s\n " , qPrintable (e.message ));
110
111
QFAIL (qPrintable (e.message ));
@@ -114,6 +115,7 @@ void TestInstruction::instruction_code_from_str() {
114
115
uint32_t code = 0 ;
115
116
Instruction::code_from_string (&code, 100 , " csrrw x0, 0x1, x1" , Address (0x0 ));
116
117
118
+ QCOMPARE (1 , 2 );
117
119
// RelocExpressionList reloc = {};
118
120
// for (size_t i = 0; i < sizeof(pesude_code_to_string) / sizeof(pesude_code_to_string[0]); i++)
119
121
// {
0 commit comments