From: John E Date: Wed, 27 Mar 2013 14:46:15 +0000 (+0100) Subject: tests: Fix logic when testing for empty state set X-Git-Tag: ATK_2_9_2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9af9e6edda08d38f0e39daab470c8e1b3ec0f84c;p=platform%2Fupstream%2Fatk.git tests: Fix logic when testing for empty state set https://bugzilla.gnome.org/show_bug.cgi?id=696466 --- diff --git a/tests/teststateset.c b/tests/teststateset.c index 27c15a9..f2cb1d4 100644 --- a/tests/teststateset.c +++ b/tests/teststateset.c @@ -34,7 +34,7 @@ test_state_set (void) state_set1 = atk_state_set_new (); b_val = atk_state_set_is_empty (state_set1); - if (b_val) + if (!b_val) { g_print ("New state set is not empty\n"); return FALSE; @@ -48,7 +48,7 @@ test_state_set (void) } b_val = atk_state_set_is_empty (state_set1); - if (!b_val) + if (b_val) { g_print ("New state set is empty when it should not be\n"); return FALSE;