[libsoup/wip/ci-test] context-test: Skip thread test with asan




commit 4cff27a1312d05fda4f9e8cbd3771bebd4643e02
Author: Patrick Griffis <pgriffis igalia com>
Date:   Tue Dec 1 15:02:17 2020 -0600

    context-test: Skip thread test with asan

 libsoup/soup-session.c | 2 ++
 tests/context-test.c   | 7 ++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index 296f9d06..8fb898c2 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -780,6 +780,7 @@ redirection_uri (SoupSession *session,
 
        new_loc = soup_message_headers_get_one (soup_message_get_response_headers (msg),
                                                "Location");
+        g_message ("redirection_uri %s", new_loc);
        if (!new_loc || !*new_loc) {
                g_set_error_literal (error,
                                     SOUP_SESSION_ERROR,
@@ -899,6 +900,7 @@ soup_session_redirect_message (SoupSession *session,
        retval = soup_session_requeue_item (session, item, error);
        soup_message_queue_item_unref (item);
 
+        g_message ("RET %d", retval);
        return retval;
 }
 
diff --git a/tests/context-test.c b/tests/context-test.c
index d13874ec..38a303b7 100644
--- a/tests/context-test.c
+++ b/tests/context-test.c
@@ -94,6 +94,11 @@ static GMainLoop *test1_loop;
 static void
 do_test1 (void)
 {
+        if (g_getenv ("ASAN_OPTIONS")) {
+                g_test_skip ("Flaky timing with ASAN enabled");
+                return;
+        }
+
        test1_loop = g_main_loop_new (NULL, FALSE);
        g_idle_add (idle_start_test1_thread, NULL);
        g_main_loop_run (test1_loop);
@@ -109,7 +114,7 @@ idle_start_test1_thread (gpointer user_data)
        g_mutex_lock (&test1_mutex);
        thread = g_thread_new ("test1_thread", test1_thread, NULL);
 
-       time = g_get_monotonic_time () + 10000000;
+       time = g_get_monotonic_time () + 5000000;
        if (g_cond_wait_until (&test1_cond, &test1_mutex, time))
                g_thread_join (thread);
        else {


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