[empathy] empathy-parser-test: stop as soon a test fails
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy-parser-test: stop as soon a test fails
- Date: Tue, 8 Jun 2010 15:47:57 +0000 (UTC)
commit ce6520bd5432a14f9d2689aae388747a9303c014
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Jun 8 16:50:09 2010 +0200
empathy-parser-test: stop as soon a test fails
That's much easier to spot the test failing.
tests/empathy-parser-test.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/tests/empathy-parser-test.c b/tests/empathy-parser-test.c
index 9562a37..e767852 100644
--- a/tests/empathy-parser-test.c
+++ b/tests/empathy-parser-test.c
@@ -106,7 +106,6 @@ test_parsers (void)
{NULL, NULL}
};
guint i;
- gboolean failed = FALSE;
DEBUG ("Started");
for (i = 0; tests[i] != NULL; i += 2)
@@ -119,13 +118,10 @@ test_parsers (void)
ok = !tp_strdiff (tests[i + 1], string->str);
DEBUG ("'%s' => '%s': %s", tests[i], string->str, ok ? "OK" : "FAILED");
- if (!ok)
- failed = TRUE;
+ g_assert (ok);
g_string_free (string, TRUE);
}
-
- g_assert (!failed);
}
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]