Browse Source

Skipping tests that fail for z3 version 4.8.8 (Issue reported at https://github.com/Z3Prover/z3/issues/4465)

tempestpy_adaptions
Tim Quatmann 5 years ago
parent
commit
f4a3ceb60e
  1. 5
      src/test/storm/modelchecker/multiobjective/SparseMaPcaaMultiObjectiveModelCheckerTest.cpp
  2. 5
      src/test/storm/solver/Z3LpSolverTest.cpp

5
src/test/storm/modelchecker/multiobjective/SparseMaPcaaMultiObjectiveModelCheckerTest.cpp

@ -83,6 +83,11 @@ TEST(SparseMaPcaaMultiObjectiveModelCheckerTest, server) {
std::vector<storm::RationalNumber> lb(2,-eps), ub(2,eps);
auto bloatingBox = storm::storage::geometry::Hyperrectangle<storm::RationalNumber>(lb,ub).asPolytope();
if (storm::test::z3AtLeastVersion(4,8,8)) {
// TODO: z3 v4.8.8 is known to be broken here. Check if this is fixed in future versions >4.8.8
GTEST_SKIP() << "Test disabled since it triggers a bug in the installed version of z3.";
}
EXPECT_TRUE(expectedAchievableValues->minkowskiSum(bloatingBox)->contains(result->asExplicitParetoCurveCheckResult<double>().getUnderApproximation()->convertNumberRepresentation<storm::RationalNumber>()));
EXPECT_TRUE(result->asExplicitParetoCurveCheckResult<double>().getOverApproximation()->convertNumberRepresentation<storm::RationalNumber>()->minkowskiSum(bloatingBox)->contains(expectedAchievableValues));

5
src/test/storm/solver/Z3LpSolverTest.cpp

@ -129,6 +129,11 @@ TEST(Z3LpSolver, MILPOptimizeMin) {
ASSERT_NO_THROW(solver.addConstraint("", y - x <= solver.getConstant(5.5)));
ASSERT_NO_THROW(solver.update());
if (storm::test::z3AtLeastVersion(4,8,8)) {
// TODO: z3 v4.8.8 is known to be broken here. Check if this is fixed in future versions >4.8.8
GTEST_SKIP() << "Test disabled since it triggers a bug in the installed version of z3.";
}
ASSERT_NO_THROW(solver.optimize());
ASSERT_TRUE(solver.isOptimal());
ASSERT_FALSE(solver.isUnbounded());

Loading…
Cancel
Save