mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-29 02:10:11 +01:00
Make the per-backend test results print XFAIL rather than FAIL for expected failures.
This commit is contained in:
parent
6f6c9196c8
commit
288f0f7f49
2 changed files with 14 additions and 4 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2005-07-14 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* test/cairo-test.c: (cairo_test_expecting),
|
||||
(cairo_test_expect_failure), (cairo_test): Make the per-backend
|
||||
test results print XFAIL rather than FAIL for expected failures.
|
||||
|
||||
2005-07-14 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* test/cairo-test.c: (cairo_test_real): Fix comment describing
|
||||
|
|
|
|||
|
|
@ -482,7 +482,8 @@ UNWIND_STRINGS:
|
|||
}
|
||||
|
||||
static cairo_test_status_t
|
||||
cairo_test_real (cairo_test_t *test, cairo_test_draw_function_t draw)
|
||||
cairo_test_expecting (cairo_test_t *test, cairo_test_draw_function_t draw,
|
||||
cairo_test_status_t expectation)
|
||||
{
|
||||
int i;
|
||||
cairo_test_status_t status, ret;
|
||||
|
|
@ -545,7 +546,10 @@ cairo_test_real (cairo_test_t *test, cairo_test_draw_function_t draw)
|
|||
break;
|
||||
default:
|
||||
case CAIRO_TEST_FAILURE:
|
||||
printf ("FAIL\n");
|
||||
if (expectation == CAIRO_TEST_FAILURE)
|
||||
printf ("XFAIL\n");
|
||||
else
|
||||
printf ("FAIL\n");
|
||||
ret = status;
|
||||
break;
|
||||
}
|
||||
|
|
@ -564,14 +568,14 @@ cairo_test_expect_failure (cairo_test_t *test,
|
|||
const char *because)
|
||||
{
|
||||
printf ("\n%s is expected to fail:\n\t%s\n", test->name, because);
|
||||
return cairo_test_real (test, draw);
|
||||
return cairo_test_expecting (test, draw, CAIRO_TEST_FAILURE);
|
||||
}
|
||||
|
||||
cairo_test_status_t
|
||||
cairo_test (cairo_test_t *test, cairo_test_draw_function_t draw)
|
||||
{
|
||||
printf ("\n");
|
||||
return cairo_test_real (test, draw);
|
||||
return cairo_test_expecting (test, draw, CAIRO_TEST_SUCCESS);
|
||||
}
|
||||
|
||||
cairo_pattern_t *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue