From 0196545074366e2f35bc11dcb69f081b39cde1a6 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 16 Jul 2013 14:29:35 -0500 Subject: fix failing tests on ppc & add more verbose warnings in the menu sync tests --- tests/test-service.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test-service.cc b/tests/test-service.cc index 2027ec0..e69b574 100644 --- a/tests/test-service.cc +++ b/tests/test-service.cc @@ -88,7 +88,7 @@ class ServiceTest: public GTestDBusFixture GSList * menu_references; - bool any_item_changed; + gboolean any_item_changed; static void on_items_changed (GMenuModel * model G_GNUC_UNUSED, gint position G_GNUC_UNUSED, @@ -149,7 +149,7 @@ class ServiceTest: public GTestDBusFixture super :: SetUp (); menu_references = NULL; - any_item_changed = NULL; + any_item_changed = FALSE; timer = g_timer_new (); mock_settings = g_settings_new ("com.canonical.indicator.session.backendmock"); @@ -231,6 +231,7 @@ class ServiceTest: public GTestDBusFixture any_item_changed = false; while (!times_up() && !any_item_changed) wait_msec (50); + g_warn_if_fail (any_item_changed); sync_menu (); } -- cgit v1.2.3