mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Tests: Fix some unusual check_finished cases.
This commit is contained in:
parent
6ea725f479
commit
b2dd5de860
@ -14,7 +14,9 @@ top_filename("t/t_assert_on.v");
|
||||
|
||||
compile();
|
||||
|
||||
execute();
|
||||
execute(
|
||||
check_finished => 1,
|
||||
);
|
||||
|
||||
ok(1);
|
||||
1;
|
||||
|
@ -13,6 +13,7 @@ module t (/*AUTOARG*/
|
||||
|
||||
always @ (posedge clk) begin
|
||||
assert (0);
|
||||
$write("*-* All Finished *-*\n");
|
||||
$finish;
|
||||
end
|
||||
|
||||
|
@ -16,7 +16,9 @@ compile(
|
||||
v_flags2 => ["--exe $Self->{t_dir}/$Self->{name}.cpp"],
|
||||
);
|
||||
|
||||
execute();
|
||||
execute(
|
||||
check_finished => 0,
|
||||
);
|
||||
|
||||
ok(1);
|
||||
1;
|
||||
|
@ -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 *-*
|
||||
|
@ -12,6 +12,7 @@ module t (/*AUTOARG*/);
|
||||
randcase // Bad all zero weights
|
||||
0 : $stop;
|
||||
endcase
|
||||
$write("*-* All Finished *-*\n");
|
||||
$finish;
|
||||
end
|
||||
|
||||
|
@ -16,6 +16,7 @@ compile(
|
||||
);
|
||||
|
||||
execute(
|
||||
check_finished => 0,
|
||||
);
|
||||
|
||||
ok(1);
|
||||
|
Loading…
Reference in New Issue
Block a user