summaryrefslogtreecommitdiffstats
path: root/test/src/test-state-pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/test-state-pass.cpp')
-rw-r--r--test/src/test-state-pass.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/src/test-state-pass.cpp b/test/src/test-state-pass.cpp
index 33f13ac..c07523e 100644
--- a/test/src/test-state-pass.cpp
+++ b/test/src/test-state-pass.cpp
@@ -79,7 +79,10 @@ int main(int argc, char** argv) {
while(state != USCXML_FINISHED) {
state = interpreter.step();
}
- assert(interpreter.isInState("pass"));
+ if (interpreter.isInState("pass"))
+ return EXIT_SUCCESS;
+ return EXIT_FAILURE;
+
} catch (Event e) {
std::cerr << "Thrown Event out of Interpreter: " << e;
return EXIT_FAILURE;