diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-06-26 16:09:18 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2017-06-26 16:09:18 (GMT) |
commit | ff6d66fdd1cc613a6df06968fb834b53c08b43e8 (patch) | |
tree | cf506300cb54d079a487a881170c5e3d826cc9b5 /test | |
parent | 9e639740124bfb7cc642726200aecc96a75dc916 (diff) | |
download | uscxml-ff6d66fdd1cc613a6df06968fb834b53c08b43e8.zip uscxml-ff6d66fdd1cc613a6df06968fb834b53c08b43e8.tar.gz uscxml-ff6d66fdd1cc613a6df06968fb834b53c08b43e8.tar.bz2 |
Bug fixes in test-state-pass
Diffstat (limited to 'test')
-rw-r--r-- | test/src/test-performance.cpp | 2 | ||||
-rw-r--r-- | test/src/test-state-pass.cpp | 5 |
2 files changed, 6 insertions, 1 deletions
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 <chrono> #include <iostream> @@ -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; |