Tests: Skip t_randomize_method_constraints when no solver is installed (#5260)
This commit is contained in:
parent
25f5db4b5f
commit
4cf017d7fe
|
|
@ -10,14 +10,18 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
|
||||||
|
|
||||||
scenarios(simulator => 1);
|
scenarios(simulator => 1);
|
||||||
|
|
||||||
compile(
|
if (!$Self->have_solver) {
|
||||||
|
skip("No constraint solver installed");
|
||||||
|
} else {
|
||||||
|
compile(
|
||||||
# Ensure we test captures of static variables
|
# Ensure we test captures of static variables
|
||||||
verilator_flags2 => ["--fno-inline"],
|
verilator_flags2 => ["--fno-inline"],
|
||||||
);
|
);
|
||||||
|
|
||||||
execute(
|
execute(
|
||||||
check_finished => 1,
|
check_finished => 1,
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
ok(1);
|
ok(1);
|
||||||
1;
|
1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue