> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.1.71 #1-NixOS SMP PREEMPT_DYNAMIC Fri Jan  5 14:18:41 UTC 2024 x86_64 GNU/Linux
 22:33:06  up 2 days 11:27,  2 users,  load average: 1.01, 0.67, 0.47
This commit is contained in:
tracer-ysyx 2024-01-15 22:33:06 +08:00 committed by xinyangli
parent 435161caa3
commit 3ed490ab52

View file

@ -181,17 +181,17 @@ START_TEST(test_expr_plain_register) {
}
END_TEST
START_TEST(test_expr_register) {
yy_scan_string(reg_exprs[_i].expr);
uint32_t value;
ck_assert(!yyparse(&value));
yylex_destroy();
// START_TEST(test_expr_register) {
// yy_scan_string(reg_exprs[_i].expr);
// uint32_t value;
// ck_assert(!yyparse(&value));
// yylex_destroy();
ck_assert_msg(value == reg_exprs[_i].reference,
"\n\texpr = %s\n\t(addr = %u) != (reference = %u)\n", reg_exprs[_i].expr,
value, reg_exprs[_i].reference);
}
END_TEST
// ck_assert_msg(value == reg_exprs[_i].reference,
// "\n\texpr = %s\n\t(addr = %u) != (reference = %u)\n", reg_exprs[_i].expr,
// value, reg_exprs[_i].reference);
// }
// END_TEST
Suite *expr_suite(void) {
Suite *s;