Tests: Fix some unusual check_finished cases.

This commit is contained in:
Wilson Snyder 2023-01-22 22:21:36 -05:00
parent 6ea725f479
commit b2dd5de860
6 changed files with 10 additions and 2 deletions

View File

@ -14,7 +14,9 @@ top_filename("t/t_assert_on.v");
compile();
execute();
execute(
check_finished => 1,
);
ok(1);
1;

View File

@ -13,6 +13,7 @@ module t (/*AUTOARG*/
always @ (posedge clk) begin
assert (0);
$write("*-* All Finished *-*\n");
$finish;
end

View File

@ -16,7 +16,9 @@ compile(
v_flags2 => ["--exe $Self->{t_dir}/$Self->{name}.cpp"],
);
execute();
execute(
check_finished => 0,
);
ok(1);
1;

View File

@ -1 +1,2 @@
[0] %Error: t_randcase_bad.v:12: Assertion failed in top.t.unnamedblk1: All randcase items had 0 weights (IEEE 1800-2017 18.16)
*-* All Finished *-*

View File

@ -12,6 +12,7 @@ module t (/*AUTOARG*/);
randcase // Bad all zero weights
0 : $stop;
endcase
$write("*-* All Finished *-*\n");
$finish;
end

View File

@ -16,6 +16,7 @@ compile(
);
execute(
check_finished => 0,
);
ok(1);