From dace2c0a9a8f9d0559c4e4cbdb56ebdcae93b097 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Thu, 4 Jul 2024 11:42:53 +0100 Subject: [PATCH] Tests: Skip t_constraint_state when no solver is installed (#5224) --- test_regress/t/t_constraint_state.pl | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/test_regress/t/t_constraint_state.pl b/test_regress/t/t_constraint_state.pl index e45199a00..c4618c2fd 100755 --- a/test_regress/t/t_constraint_state.pl +++ b/test_regress/t/t_constraint_state.pl @@ -10,13 +10,16 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di scenarios(simulator => 1); -compile( - ); - -execute( - check_finished => 1, - ); +if (!$Self->have_solver) { + skip("No constraint solver installed"); +} else { + compile( + ); + execute( + check_finished => 1, + ); +} ok(1); 1;