diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-11-19 17:29:59 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-11-19 17:29:59 (GMT) |
commit | 75c66cb057897c8078b3f837eace7eab4f2fb397 (patch) | |
tree | cce41193048347b39c39c8525adb0ae6c61b4420 /test/src/test-w3c.cpp | |
parent | 60aab00ff93e0821b426fe66f1d91e96f7e7d27b (diff) | |
download | uscxml-75c66cb057897c8078b3f837eace7eab4f2fb397.zip uscxml-75c66cb057897c8078b3f837eace7eab4f2fb397.tar.gz uscxml-75c66cb057897c8078b3f837eace7eab4f2fb397.tar.bz2 |
Start tests with HTTP available, as some will fail otherwise
Diffstat (limited to 'test/src/test-w3c.cpp')
-rw-r--r-- | test/src/test-w3c.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/test/src/test-w3c.cpp b/test/src/test-w3c.cpp index d32db97..df433b8 100644 --- a/test/src/test-w3c.cpp +++ b/test/src/test-w3c.cpp @@ -86,18 +86,6 @@ void customTerminate() { abort(); } -void printUsageAndExit() { - printf("w3c-test version " USCXML_VERSION " (" CMAKE_BUILD_TYPE " build - " CMAKE_COMPILER_STRING ")\n"); - printf("Usage\n"); - printf("\tmmi-browser"); -#ifdef BUILD_AS_PLUGINS - printf(" [-p pluginPath]"); -#endif - printf(" URL\n"); - printf("\n"); - exit(1); -} - class W3CStatusMonitor : public uscxml::InterpreterMonitor { void beforeCompletion(uscxml::Interpreter interpreter) { Arabica::XPath::NodeSet<std::string> config = interpreter.getConfiguration(); @@ -120,9 +108,11 @@ int main(int argc, char** argv) { #endif if (argc < 2) { - printUsageAndExit(); + exit(EXIT_FAILURE); } + HTTPServer::getInstance(32954, 32955, NULL); // bind to some random tcp sockets for ioprocessor tests + google::InitGoogleLogging(argv[0]); google::LogToStderr(); |