aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-03 17:14:32 -0500
committerTed Gould <ted@gould.cx>2010-08-03 17:14:32 -0500
commit29253842cb7715e7f3d3ca94bf4082edb824bb9c (patch)
treed659375ef9a1c5e3cc1092eb6986834f139a46a8 /tests
parentf72116833d67c954ec69dfe8aced4e7e26c36c23 (diff)
downloadlibayatana-appindicator-29253842cb7715e7f3d3ca94bf4082edb824bb9c.tar.gz
libayatana-appindicator-29253842cb7715e7f3d3ca94bf4082edb824bb9c.tar.bz2
libayatana-appindicator-29253842cb7715e7f3d3ca94bf4082edb824bb9c.zip
Stupid reverse logic in the string comparison.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-libappindicator.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test-libappindicator.c b/tests/test-libappindicator.c
index 6d06236..2ac7326 100644
--- a/tests/test-libappindicator.c
+++ b/tests/test-libappindicator.c
@@ -197,7 +197,7 @@ test_libappindicator_set_label (void)
app_indicator_set_label(ci, "label", "");
- g_assert(g_strcmp0(app_indicator_get_label(ci), "label"));
+ g_assert(g_strcmp0(app_indicator_get_label(ci), "label") == 0);
g_assert(app_indicator_get_label_guide(ci) == NULL);
app_indicator_set_label(ci, NULL, NULL);
@@ -207,18 +207,18 @@ test_libappindicator_set_label (void)
app_indicator_set_label(ci, "label", "guide");
- g_assert(g_strcmp0(app_indicator_get_label(ci), "label"));
- g_assert(g_strcmp0(app_indicator_get_label_guide(ci), "guide"));
+ g_assert(g_strcmp0(app_indicator_get_label(ci), "label") == 0);
+ g_assert(g_strcmp0(app_indicator_get_label_guide(ci), "guide") == 0);
app_indicator_set_label(ci, "label2", "guide");
- g_assert(g_strcmp0(app_indicator_get_label(ci), "label2"));
- g_assert(g_strcmp0(app_indicator_get_label_guide(ci), "guide"));
+ g_assert(g_strcmp0(app_indicator_get_label(ci), "label2") == 0);
+ g_assert(g_strcmp0(app_indicator_get_label_guide(ci), "guide") == 0);
app_indicator_set_label(ci, "trick-label", "trick-guide");
- g_assert(g_strcmp0(app_indicator_get_label(ci), "trick-label"));
- g_assert(g_strcmp0(app_indicator_get_label_guide(ci), "trick-guide"));
+ g_assert(g_strcmp0(app_indicator_get_label(ci), "trick-label") == 0);
+ g_assert(g_strcmp0(app_indicator_get_label_guide(ci), "trick-guide") == 0);
g_object_unref(G_OBJECT(ci));
return;