summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2020-12-01 15:29:05 -0600
committerPatrick Griffis <pgriffis@igalia.com>2020-12-01 15:29:05 -0600
commit4a6c738083a6f3308c2c5c3a097a950cbf039abd (patch)
tree1a734979dd551823ad503584bfbcf13399525519
parent9159588a4881b96ebbb47b133b857e2da7969b59 (diff)
downloadlibsoup-4a6c738083a6f3308c2c5c3a097a950cbf039abd.tar.gz
context-test: Skip flaky test under asan
-rw-r--r--tests/context-test.c7
1 files changed, 6 insertions, 1 deletions
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 {