Skip to content

Commit 5d15a72

Browse files
Add test for exxecutable "names" containing arguments
1 parent 73841da commit 5d15a72

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/it/scala/smtlib/it/ProcessInterpreterTests.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ class ProcessInterpreterTests extends AnyFunSuite with TestHelpers {
1818
//TODO: properly get all interpreters
1919
def interpreters: Seq[Interpreter] = Seq(getZ3Interpreter)
2020

21+
test("Interpreter can be created with complex executable names") {
22+
// sometimes we are given arguments in the executable name itself;
23+
// check that these are split and processed correctly
24+
val z3Interpreter = new Z3Interpreter("z3 -in", Array("-smt2")) {}
25+
z3Interpreter.eval(trees.Commands.SetLogic(trees.Commands.AUFLIA()))
26+
z3Interpreter.eval(trees.Commands.CheckSat())
27+
z3Interpreter.interrupt()
28+
}
29+
2130
test("Interrupt after free does not throw an exception") {
2231
//TODO: check against all interpreters
2332
val z3Interpreter = getZ3Interpreter

0 commit comments

Comments
 (0)