diff options
Diffstat (limited to 'test/src')
-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(); |