Skip to content

Commit 0436959

Browse files
Progage InterruptedExceptionin Mathsat5AbstractProver.exec() to fix seceral failed tests in TimoutTest.java
1 parent ea5b9e7 commit 0436959

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/org/sosy_lab/java_smt/solvers/mathsat5/Mathsat5AbstractProver.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,14 @@ private long buildConfig(Set<ProverOptions> opts) {
9797
/** add needed options into the given map. */
9898
protected abstract void createConfig(Map<String, String> pConfig);
9999

100-
private <T> T exec(Callable<T> closure) throws SolverException {
100+
private <T> T exec(Callable<T> closure) throws SolverException, InterruptedException {
101101
long hook = context.addTerminationTest(curEnv);
102102
T value = null;
103103
try {
104104
value = closure.call();
105105
} catch (Throwable t) {
106106
Throwables.propagateIfPossible(t, IllegalStateException.class, SolverException.class);
107+
Throwables.propagateIfPossible(t, InterruptedException.class);
107108
} finally {
108109
msat_free_termination_callback(hook);
109110
}

0 commit comments

Comments
 (0)