> 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 20:50:16 up 0:05, 2 users, load average: 1.33, 0.73, 0.31
This commit is contained in:
parent
cada53f571
commit
16e1bc36e6
1 changed files with 7 additions and 7 deletions
|
@ -173,14 +173,14 @@ START_TEST(test_expr_plain_register) {
|
|||
// NOTE: need to fix this if want to support more arch
|
||||
buf[0] = '$';
|
||||
for (i = 1; i < 32; i++) {
|
||||
ck_assert(strncpy(buf + 1, regs[i], 10));
|
||||
// gpr(i) = i;
|
||||
// yy_scan_string(buf);
|
||||
// result = yyparse(&value);
|
||||
// yylex_destroy();
|
||||
// ck_assert_msg(result == 0, "expr = %s\n", buf);
|
||||
ck_assert(strncpy(buf + 1, regs[i], 10) != NULL);
|
||||
gpr(i) = i;
|
||||
yy_scan_string(buf);
|
||||
result = yyparse(&value);
|
||||
yylex_destroy();
|
||||
ck_assert_msg(result == 0, "expr = %s\n", buf);
|
||||
|
||||
// ck_assert(value == i);
|
||||
ck_assert(value == i);
|
||||
for (j = 1; j < 10; j++) {
|
||||
buf[i] = '\0';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue