Commit 7599cd8e authored by Marcus Comstedt's avatar Marcus Comstedt

Testsuite [SSL]: Skip tests requiring threads if not available

parent 391c4483
......@@ -247,12 +247,16 @@ define(run_sub_test, [[
]])
]])
cond_begin([[all_constants()->thread_create]])
dnl Displaced tests for SSL.File.
run_sub_test(({"SRCDIR../../../src/modules/_Stdio/async_tls_close_test.pike", "0", "0"}))
run_sub_test(({"SRCDIR../../../src/modules/_Stdio/async_tls_close_test.pike", "0", "1"}))
run_sub_test(({"SRCDIR../../../src/modules/_Stdio/async_tls_close_test.pike", "1", "0"}))
run_sub_test(({"SRCDIR../../../src/modules/_Stdio/async_tls_close_test.pike", "1", "1"}))
cond_end // thread_create
test_do([[
#define ASSERT(X) if(!(X)) error("Assertion failed.\n")
......@@ -403,6 +407,8 @@ test_do([[
#endif
]])
cond_begin([[all_constants()->thread_create]])
test_any([[
Stdio.File client_con = Stdio.File();
Stdio.File server_con =
......@@ -439,6 +445,8 @@ test_any([[
return has_prefix("GET / HTTP/1.0\r\n\r\n", cb_data);
]], 1)
cond_end // thread_create
test_do([[
add_constant("client_msg", random_string(65519));
]])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment