Tests: Skip t_randomize_method_constraints when no solver is installed (#5260)

This commit is contained in:
Geza Lore 2024-07-13 13:31:16 +01:00 committed by GitHub
parent 25f5db4b5f
commit 4cf017d7fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 7 deletions

View File

@ -10,14 +10,18 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
scenarios(simulator => 1);
compile(
# Ensure we test captures of static variables
verilator_flags2 => ["--fno-inline"],
);
if (!$Self->have_solver) {
skip("No constraint solver installed");
} else {
compile(
# Ensure we test captures of static variables
verilator_flags2 => ["--fno-inline"],
);
execute(
check_finished => 1,
);
execute(
check_finished => 1,
);
}
ok(1);
1;