diff --git a/nemu/tests/expr_test.c b/nemu/tests/expr_test.c index 180898e..c2923f0 100644 --- a/nemu/tests/expr_test.c +++ b/nemu/tests/expr_test.c @@ -82,7 +82,7 @@ START_TEST(test_expr_random_100) { fputs(code_buf, fp); fclose(fp); - int ret = system("gcc /tmp/.code.c -Werror=div-by-zero -o /tmp/.expr"); + int ret = system("gcc /tmp/.code.c -Werror=div-by-zero -o /tmp/.expr 2>/dev/null"); if(ret == 256) { // Probably devide by zero. Skip goto clean_up;