summaryrefslogtreecommitdiff
path: root/test/regress/CMakeLists.txt
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-10-22 09:12:47 -0700
committerGitHub <noreply@github.com>2018-10-22 09:12:47 -0700
commit8e58fec53e1bc9f1b9349a235e2ad76bda4d9dd9 (patch)
treecad404d821e33fdaf7218584adc67b62b368380f /test/regress/CMakeLists.txt
parent0b515de430771d9bdc15fc29d41b391f1cc7c1fd (diff)
Recover from wrong use of get-info :reason-unknown (#2667)
Fixes #2584. Currently, we are immediately terminating CVC4 if the user issues a `(get-info :reason-unknown)` command if it didn't succeed a `(check-sat)` call returning `unknown`. This commit changes the behavior to return an `(error ...)` but continue executing afterwards. It turns the `ModalException` thrown in this case into a `RecoverableModalException` and adds a check in `GetInfoCommand::invoke()` to turn it into a `CommandRecoverableFailure`, which solves the issue.
Diffstat (limited to 'test/regress/CMakeLists.txt')
-rw-r--r--test/regress/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt
index e489d2e21..5aea954e3 100644
--- a/test/regress/CMakeLists.txt
+++ b/test/regress/CMakeLists.txt
@@ -801,6 +801,7 @@ set(regress_0_tests
regress0/smallcnf.cvc
regress0/smt2output.smt2
regress0/smtlib/get-unsat-assumptions.smt2
+ regress0/smtlib/reason-unknown.smt2
regress0/strings/bug001.smt2
regress0/strings/bug002.smt2
regress0/strings/bug612.smt2
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback