summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
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;