summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-06-26 16:09:18 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-06-26 16:09:18 (GMT)
commitff6d66fdd1cc613a6df06968fb834b53c08b43e8 (patch)
treecf506300cb54d079a487a881170c5e3d826cc9b5 /test/src
parent9e639740124bfb7cc642726200aecc96a75dc916 (diff)
downloaduscxml-ff6d66fdd1cc613a6df06968fb834b53c08b43e8.zip
uscxml-ff6d66fdd1cc613a6df06968fb834b53c08b43e8.tar.gz
uscxml-ff6d66fdd1cc613a6df06968fb834b53c08b43e8.tar.bz2
Bug fixes in test-state-pass
Diffstat (limited to 'test/src')
-rw-r--r--test/src/test-performance.cpp2
-rw-r--r--test/src/test-state-pass.cpp5
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;