[gnome-keyring] gcr: Fix race condition in gnupg collection async tests.



commit c20711439758710fe38a5df58f5dd0557fb28a94
Author: Stef Walter <stefw collabora co uk>
Date:   Sun May 15 14:19:51 2011 +0200

    gcr: Fix race condition in gnupg collection async tests.

 gcr/tests/test-gnupg-collection.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gcr/tests/test-gnupg-collection.c b/gcr/tests/test-gnupg-collection.c
index 0761463..acfb186 100644
--- a/gcr/tests/test-gnupg-collection.c
+++ b/gcr/tests/test-gnupg-collection.c
@@ -116,6 +116,7 @@ on_async_ready (GObject *source, GAsyncResult *res, gpointer user_data)
 	g_assert (G_OBJECT (test->collection) == source);
 	g_assert (test->result == NULL);
 	test->result = g_object_ref (res);
+	egg_test_wait_stop ();
 }
 
 static void



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