[libdazzle] tests: remove extra assertion from test



commit cb3851e3665f4c09871faf923ac29181839cd778
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jul 19 17:33:48 2017 -0700

    tests: remove extra assertion from test
    
    This is hard to test correctly, since the file could still have
    a reference in another thread that is in the process of
    finalization or will be soon.

 tests/test-fuzzy-index.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-fuzzy-index.c b/tests/test-fuzzy-index.c
index ad7f36a..9def968 100644
--- a/tests/test-fuzzy-index.c
+++ b/tests/test-fuzzy-index.c
@@ -123,7 +123,13 @@ test_index_builder_basic (void)
   g_assert (r);
 
   g_object_unref (file);
+
+#if 0
+  /* It would be nice if we could rely on testing this for NULL,
+   * but the async operations could still hold a reference.
+   */
   g_assert (file == NULL);
+#endif
 }
 
 static void


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