[libsoup] context-test: Skip flaky test under asan
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] context-test: Skip flaky test under asan
- Date: Tue, 1 Dec 2020 21:29:12 +0000 (UTC)
commit 4a6c738083a6f3308c2c5c3a097a950cbf039abd
Author: Patrick Griffis <pgriffis igalia com>
Date: Tue Dec 1 15:29:05 2020 -0600
context-test: Skip flaky test under asan
tests/context-test.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
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]