[libsoup/carlosgc/thread-proxy-test-apache] multithread-test: skip proxy tests if apache is not available




commit 4ba397ee7079a62541545fa0213d69f746a763ab
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Wed Jul 6 12:00:44 2022 +0200

    multithread-test: skip proxy tests if apache is not available
    
    Fixes #286

 tests/multithread-test.c | 13 +++++++++++--
 1 file 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
@@ -258,6 +258,15 @@ do_multithread_basic_test (Test         *test,
                 g_main_context_iteration (NULL, FALSE);
 }
 
+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),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]