summaryrefslogtreecommitdiff
path: root/test/cairo-test.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2006-07-13 18:17:39 -0400
committerBehdad Esfahbod <behdad@behdad.org>2006-07-13 18:18:08 -0400
commitebc736730615021b07b851b41c6de79248ca00e4 (patch)
tree39cbae1b1e599c26279cd4f3a10bc2327417feb9 /test/cairo-test.c
parent3f7593612f52f88eabb87de0c1efbf86bf31e8c2 (diff)
Fix test result formatting.
Diffstat (limited to 'test/cairo-test.c')
-rw-r--r--test/cairo-test.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/cairo-test.c b/test/cairo-test.c
index c3393115..96ffcba4 100644
--- a/test/cairo-test.c
+++ b/test/cairo-test.c
@@ -1881,7 +1881,10 @@ cairo_test_expecting (cairo_test_t *test,
cairo_test_log ("UNTESTED\n");
break;
case CAIRO_TEST_CRASHED:
- if (!no_fail_on_stdout)
+ if (no_fail_on_stdout)
+ /* eat the test name */
+ printf ("\r");
+ else
printf ("CRASHED\n");
cairo_test_log ("CRASHED\n");
fprintf (stderr, "%s-%s-%s [%d]:\t%s!!!TEST-CASE CRASH!!!%s\n",
@@ -1896,13 +1899,16 @@ cairo_test_expecting (cairo_test_t *test,
printf ("XFAIL\n");
cairo_test_log ("XFAIL\n");
} else {
- if (!no_fail_on_stdout)
+ if (no_fail_on_stdout)
+ /* eat the test name */
+ printf ("\r");
+ else
printf ("FAIL\n");
- cairo_test_log ("FAIL\n");
fprintf (stderr, "%s-%s-%s [%d]:\t%sUNEXPECTED FAILURE%s\n",
test->name, target->name,
_cairo_test_content_name (target->content), dev_offset,
fail_face, normal_face);
+ cairo_test_log ("FAIL\n");
}
ret = status;
break;