[cairo-commit] test/cairo-test.c
Behdad Esfahbod
behdad at kemper.freedesktop.org
Thu Jul 13 15:18:28 PDT 2006
test/cairo-test.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
New commits:
diff-tree ebc736730615021b07b851b41c6de79248ca00e4 (from 3f7593612f52f88eabb87de0c1efbf86bf31e8c2)
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Thu Jul 13 18:17:39 2006 -0400
Fix test result formatting.
diff --git a/test/cairo-test.c b/test/cairo-test.c
index c339311..96ffcba 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;
More information about the cairo-commit
mailing list