diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-08-22 22:40:46 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-08-22 22:40:46 (GMT) |
commit | 10e6e1db531a682f852b488ba8bf4cbb2f984d88 (patch) | |
tree | 1f4b526103d1e6350a0ec09f40ae426344540dee /test/src/test-w3c.cpp | |
parent | 9509b795c7493d7b351dc25855a6a82cd392deb1 (diff) | |
download | uscxml-10e6e1db531a682f852b488ba8bf4cbb2f984d88.zip uscxml-10e6e1db531a682f852b488ba8bf4cbb2f984d88.tar.gz uscxml-10e6e1db531a682f852b488ba8bf4cbb2f984d88.tar.bz2 |
Spring cleaning of tests
Diffstat (limited to 'test/src/test-w3c.cpp')
-rw-r--r-- | test/src/test-w3c.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/src/test-w3c.cpp b/test/src/test-w3c.cpp index 4bd27b1..31ab9b9 100644 --- a/test/src/test-w3c.cpp +++ b/test/src/test-w3c.cpp @@ -95,6 +95,8 @@ void customTerminate() { abort(); } +int retCode = EXIT_FAILURE; + class W3CStatusMonitor : public uscxml::InterpreterMonitor { void beforeTakingTransition(uscxml::Interpreter interpreter, const Arabica::DOM::Element<std::string>& transition, bool moreComing) { @@ -147,17 +149,16 @@ class W3CStatusMonitor : public uscxml::InterpreterMonitor { std::cout << ATTR_CAST(config[0], "id") << std::endl; if (boost::starts_with(ATTR_CAST(config[0], "id"), "active:{pass")) { std::cout << "TEST SUCCEEDED" << std::endl; - exit(EXIT_SUCCESS); + retCode = EXIT_SUCCESS; } } else { if (boost::iequals(ATTR_CAST(config[0], "id"), "pass")) { std::cout << "TEST SUCCEEDED" << std::endl; - exit(EXIT_SUCCESS); + retCode = EXIT_SUCCESS; } } } std::cout << "TEST FAILED" << std::endl; - exit(EXIT_FAILURE); } Arabica::XPath::NodeSet<std::string> exitingStates; @@ -224,5 +225,5 @@ int main(int argc, char** argv) { while(interpreter.runOnMainThread(25)); } - return EXIT_SUCCESS; + return retCode; }
\ No newline at end of file |