Skip to content
Snippets Groups Projects
Commit 470ea850 authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

Protocols.WebSocket: Skip WebSocket.test if no threads

parent 6218af87
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
// WebSocket testsuite // WebSocket testsuite
// //
#if constant(Thread.Thread)
constant loopback = "127.0.0.1"; constant loopback = "127.0.0.1";
int successes; int successes;
...@@ -306,3 +308,12 @@ int main(int argc, array(string) argv) ...@@ -306,3 +308,12 @@ int main(int argc, array(string) argv)
Thread.thread_create(run_tests); Thread.thread_create(run_tests);
return -1; return -1;
} }
#else
int main(int argc, array(string) argv)
{
Tools.Testsuite.report_result(0, 0, 1);
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment