summaryrefslogtreecommitdiff
path: root/test/regress/regress0/options/didyoumean.smt2
diff options
context:
space:
mode:
authorGereon Kremer <gkremer@stanford.edu>2021-12-01 16:30:09 -0800
committerGitHub <noreply@github.com>2021-12-02 00:30:09 +0000
commit6afc21a16e740d4fb4a16cdbd9a6ff745c7ce00c (patch)
tree5b9695d8b677b11c019cd644f787ed3a6c98cc2a /test/regress/regress0/options/didyoumean.smt2
parent1339d73750e15422a5c2085c4819c15b77bededd (diff)
Add unit tests for api::Solver::setOption() (#7708)
This PR adds a generic unit test for api::Solver::setOption(). It iterates over all options and calls setOption() with somewhat cleverly chosen values according to getOptionInfo(). While building this, it occurred to me that calling std::exit() in an option handler is weird (for example for version) and we should do this in the driver instead. This PR also refactors this issue, moving all calls to std::exit() from the option handlers into the driver.
Diffstat (limited to 'test/regress/regress0/options/didyoumean.smt2')
-rw-r--r--test/regress/regress0/options/didyoumean.smt24
1 files changed, 4 insertions, 0 deletions
diff --git a/test/regress/regress0/options/didyoumean.smt2 b/test/regress/regress0/options/didyoumean.smt2
new file mode 100644
index 000000000..d95c1bde9
--- /dev/null
+++ b/test/regress/regress0/options/didyoumean.smt2
@@ -0,0 +1,4 @@
+; COMMAND-LINE: --input-agnuage
+; ERROR-SCRUBBER: grep -o "--[a-zA-Z-]+"
+; ERROR-EXPECT: --input-language
+; EXIT: 1 \ No newline at end of file
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback