From ff6d66fdd1cc613a6df06968fb834b53c08b43e8 Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Mon, 26 Jun 2017 18:09:18 +0200 Subject: Bug fixes in test-state-pass --- test/src/test-performance.cpp | 2 ++ test/src/test-state-pass.cpp | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test/src/test-performance.cpp b/test/src/test-performance.cpp index 4142b9d..13fc141 100644 --- a/test/src/test-performance.cpp +++ b/test/src/test-performance.cpp @@ -1,5 +1,6 @@ #include "uscxml/config.h" #include "uscxml/Interpreter.h" +#include "uscxml/debug/Benchmark.h" #include #include @@ -43,4 +44,5 @@ int main(int argc, char** argv) { iterations = 0; } } + Benchmark::report(std::cout); } 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; -- cgit v0.12