[libdazzle] tests: don't assert weak pointer check
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] tests: don't assert weak pointer check
- Date: Tue, 20 Jun 2017 20:40:09 +0000 (UTC)
commit 67bd58d4989b18a344dcd2e5f1d2e40496874305
Author: Christian Hergert <chergert redhat com>
Date: Tue Jun 20 13:37:59 2017 -0700
tests: don't assert weak pointer check
This is tough to get correct because the async task may still
have a reference held by another thread. So we'll just comment
it out for now.
I couldn't replicate this with a loop locally, but i could
when running the tests via `ninja test`.
tests/test-fuzzy-index.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-fuzzy-index.c b/tests/test-fuzzy-index.c
index a159f81..ad7f36a 100644
--- a/tests/test-fuzzy-index.c
+++ b/tests/test-fuzzy-index.c
@@ -113,7 +113,10 @@ test_index_builder_basic (void)
g_variant_dict_clear (&dict);
g_object_unref (builder);
+#if 0
+ /* There may still be task queues racing to hold the object */
g_assert (builder == NULL);
+#endif
r = g_file_delete (file, NULL, &error);
g_assert_no_error (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]