[libsoup/wip/ci-test] context-test: Skip thread test with asan
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/ci-test] context-test: Skip thread test with asan
- Date: Tue, 1 Dec 2020 21:14:43 +0000 (UTC)
commit 56825cc34490d5860c7838ab446e1a22a1816da8
Author: Patrick Griffis <pgriffis igalia com>
Date: Tue Dec 1 15:02:17 2020 -0600
context-test: Skip thread test with asan
tests/context-test.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/tests/context-test.c b/tests/context-test.c
index d13874ec..2cc8912e 100644
--- a/tests/context-test.c
+++ b/tests/context-test.c
@@ -106,10 +106,17 @@ idle_start_test1_thread (gpointer user_data)
guint64 time;
GThread *thread;
+#if defined(__has_feature)
+#if __has_feature(address_sanitizer)
+ g_test_skip ("Flaky timing with ASAN enabled");
+ return;
+#endif
+#endif
+
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]