From 973d3a3d1466830dcaa94e9fe39fa6fdf510fbbc Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 11 Jul 2006 22:19:39 -0400 Subject: More test suite infrastructure improvements: - Remove cairo_test_expect_failure. cairo-test.c now checks env var CAIRO_XFAIL_TESTS to see if the running test is expected to fail. The reason for expected failure is appended to the test description. - Test description is written out. - Failed/crashed tests also write a line out to stderr (in red), so one can now redirect stdout to /dev/null to only see failures. - cairo_test() has been changed to not take the draw function anymore, instead, draw function is now part of the test struct. - "make check" doesn't allow limiting backends to test using env var anymore. To limit backends to test, one should use the TARGETS variable on the make command line. - "make check-valgrind" now writes its log to valgrind-log instead of valgrind.log, to not interfere with test log file processing. --- test/mask-ctm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/mask-ctm.c') diff --git a/test/mask-ctm.c b/test/mask-ctm.c index 1196e4db4..8c5d4bd68 100644 --- a/test/mask-ctm.c +++ b/test/mask-ctm.c @@ -28,7 +28,8 @@ cairo_test_t test = { "mask-ctm", "Test that cairo_mask is affected properly by the CTM", - 10, 10 + 10, 10, + draw }; static cairo_test_status_t @@ -78,5 +79,5 @@ draw (cairo_t *cr, int width, int height) int main (void) { - return cairo_test (&test, draw); + return cairo_test (&test); } -- cgit v1.2.1