[libsoup/wip/ci-test] http2-test: Skip flakey test under asan




commit 52125ed88fd4cb0c14c7c7b1ae1da9be11890b24
Author: Patrick Griffis <pgriffis igalia com>
Date:   Wed May 26 13:04:24 2021 -0500

    http2-test: Skip flakey test under asan

 tests/http2-test.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/tests/http2-test.c b/tests/http2-test.c
index 071ef332..266691b1 100644
--- a/tests/http2-test.c
+++ b/tests/http2-test.c
@@ -433,9 +433,16 @@ on_send_ready (GObject *source, GAsyncResult *res, gpointer user_data)
 static void
 do_connections_test (Test *test, gconstpointer data)
 {
-        GMainContext *async_context = g_main_context_ref_thread_default ();
+        GMainContext *async_context;
         guint complete_count = 0;
 
+        if (g_getenv ("ASAN_OPTIONS")) {
+                g_test_skip ("Flakey on asan GitLab runner");
+                return;
+        }
+
+        async_context = g_main_context_ref_thread_default ();
+
 #define N_TESTS 100
 
         for (uint i = 0; i < N_TESTS; ++i) {


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