aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-08 22:50:09 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-08 23:33:56 +0800
commitce6520bd5432a14f9d2689aae388747a9303c014 (patch)
treeb10e6e3d3f3747ac246e06d4ad6ae4381cb0dedd /tests
parente804261f77cf34814c56e947cd2667aff9d544cf (diff)
downloadgsoc2013-empathy-ce6520bd5432a14f9d2689aae388747a9303c014.tar
gsoc2013-empathy-ce6520bd5432a14f9d2689aae388747a9303c014.tar.gz
gsoc2013-empathy-ce6520bd5432a14f9d2689aae388747a9303c014.tar.bz2
gsoc2013-empathy-ce6520bd5432a14f9d2689aae388747a9303c014.tar.lz
gsoc2013-empathy-ce6520bd5432a14f9d2689aae388747a9303c014.tar.xz
gsoc2013-empathy-ce6520bd5432a14f9d2689aae388747a9303c014.tar.zst
gsoc2013-empathy-ce6520bd5432a14f9d2689aae388747a9303c014.zip
empathy-parser-test: stop as soon a test fails
That's much easier to spot the test failing.
Diffstat (limited to 'tests')
-rw-r--r--tests/empathy-parser-test.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/empathy-parser-test.c b/tests/empathy-parser-test.c
index 9562a37dd..e767852fd 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