Skip to content

Commit

Permalink
Disable horn test on non-linux machines
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Jul 9, 2024
1 parent 9853615 commit ca7bacc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package hu.bme.mit.theta.solver.z3

import hu.bme.mit.theta.common.OsHelper
import hu.bme.mit.theta.core.ParamHolder
import hu.bme.mit.theta.core.Relation
import hu.bme.mit.theta.core.decl.Decls.Const
Expand All @@ -28,6 +29,8 @@ import hu.bme.mit.theta.core.type.inttype.IntExprs.Int
import hu.bme.mit.theta.core.type.inttype.IntType
import hu.bme.mit.theta.solver.HornSolver
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Assumptions
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupiter.params.provider.MethodSource
Expand All @@ -45,6 +48,11 @@ class Z3HornSolverTest {
}
}

@BeforeEach
fun before() {
Assumptions.assumeTrue(OsHelper.getOs() == OsHelper.OperatingSystem.LINUX)
}

@ParameterizedTest
@MethodSource("solvers")
fun testSolvable(solver: HornSolver) {
Expand Down

0 comments on commit ca7bacc

Please sign in to comment.