aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-07-16 14:29:35 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-07-16 14:29:35 -0500
commit0196545074366e2f35bc11dcb69f081b39cde1a6 (patch)
treedf4cf4c1ac83818c4733a1bd8d63b4685e360b65
parent550b78d3ce87fcbf446b4d9e70f93214c6d1c72a (diff)
downloadayatana-indicator-session-0196545074366e2f35bc11dcb69f081b39cde1a6.tar.gz
ayatana-indicator-session-0196545074366e2f35bc11dcb69f081b39cde1a6.tar.bz2
ayatana-indicator-session-0196545074366e2f35bc11dcb69f081b39cde1a6.zip
fix failing tests on ppc & add more verbose warnings in the menu sync tests
-rw-r--r--tests/test-service.cc5
1 files changed, 3 insertions, 2 deletions
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 ();
}