diff options
author | Ted Gould <ted@gould.cx> | 2010-08-03 17:14:32 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-08-03 17:14:32 -0500 |
commit | 29253842cb7715e7f3d3ca94bf4082edb824bb9c (patch) | |
tree | d659375ef9a1c5e3cc1092eb6986834f139a46a8 /tests | |
parent | f72116833d67c954ec69dfe8aced4e7e26c36c23 (diff) | |
download | ayatana-indicator-application-29253842cb7715e7f3d3ca94bf4082edb824bb9c.tar.gz ayatana-indicator-application-29253842cb7715e7f3d3ca94bf4082edb824bb9c.tar.bz2 ayatana-indicator-application-29253842cb7715e7f3d3ca94bf4082edb824bb9c.zip |
Stupid reverse logic in the string comparison.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-libappindicator.c | 14 |
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; |