aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/empathy-live-search-test.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/empathy-live-search-test.c b/tests/empathy-live-search-test.c
index 377470e60..2f02468d0 100644
--- a/tests/empathy-live-search-test.c
+++ b/tests/empathy-live-search-test.c
@@ -49,7 +49,6 @@ test_live_search (void)
{ NULL, NULL, FALSE }
};
guint i;
- gboolean failed = FALSE;
DEBUG ("Started");
for (i = 0; tests[i].string != NULL; i ++)
@@ -60,13 +59,12 @@ test_live_search (void)
match = empathy_live_search_match_string (tests[i].string, tests[i].prefix);
ok = (match == tests[i].should_match);
- DEBUG ("'%s' - '%s': %s", tests[i].string, tests[i].prefix, ok ? "OK" : "FAILED");
+ DEBUG ("'%s' - '%s' %s: %s", tests[i].string, tests[i].prefix,
+ tests[i].should_match ? "should match" : "should NOT match",
+ ok ? "OK" : "FAILED");
- if (!ok)
- failed = TRUE;
+ g_assert (ok);
}
-
- g_assert (!failed);
}
int