diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2022-07-06 12:00:44 +0200 |
---|---|---|
committer | Carlos Garcia Campos <cgarcia@igalia.com> | 2022-07-06 12:01:32 +0200 |
commit | 4ba397ee7079a62541545fa0213d69f746a763ab (patch) | |
tree | 804e631161d637a820d06867321e5016b914c076 /tests | |
parent | a572349e5d09714db3052ec1487bdc33a28c17df (diff) | |
download | libsoup-4ba397ee7079a62541545fa0213d69f746a763ab.tar.gz |
multithread-test: skip proxy tests if apache is not available
Fixes #286
Diffstat (limited to 'tests')
-rw-r--r-- | tests/multithread-test.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/multithread-test.c b/tests/multithread-test.c index 1e7b5d80..c0378531 100644 --- a/tests/multithread-test.c +++ b/tests/multithread-test.c @@ -259,6 +259,15 @@ do_multithread_basic_test (Test *test, } static void +do_multithread_basic_proxy_test (Test *test, + gconstpointer data) +{ + SOUP_TEST_SKIP_IF_NO_APACHE; + + do_multithread_basic_test (test, data); +} + +static void do_multithread_basic_ssl_test (Test *test, gconstpointer data) { @@ -465,12 +474,12 @@ main (int argc, char **argv) g_test_add ("/multithread/basic-proxy/async", Test, GUINT_TO_POINTER (BASIC_PROXY), test_setup, - do_multithread_basic_test, + do_multithread_basic_proxy_test, test_teardown); g_test_add ("/multithread/basic-proxy/sync", Test, GUINT_TO_POINTER (BASIC_PROXY | BASIC_SYNC), test_setup, - do_multithread_basic_test, + do_multithread_basic_proxy_test, test_teardown); g_test_add ("/multithread/basic-no-main-thread/async", Test, GUINT_TO_POINTER (BASIC_NO_MAIN_THREAD), |