[libdazzle] tests: give a couple round-trips to release pending state



commit 8d84c7f2c23540298041796c07f7bc8e958b277c
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 27 20:03:10 2018 -0700

    tests: give a couple round-trips to release pending state

 tests/test-fuzzy-index.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/tests/test-fuzzy-index.c b/tests/test-fuzzy-index.c
index d21b3bc..8c7d61b 100644
--- a/tests/test-fuzzy-index.c
+++ b/tests/test-fuzzy-index.c
@@ -117,6 +117,10 @@ test_index_builder_basic (void)
   g_assert (r);
 
   g_object_unref (file);
+
+  while (g_main_context_pending (NULL))
+    g_main_context_iteration (NULL, TRUE);
+
   g_main_loop_unref (main_loop);
 }
 


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