diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2006-07-11 22:19:39 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2006-07-11 22:19:39 -0400 |
commit | 973d3a3d1466830dcaa94e9fe39fa6fdf510fbbc (patch) | |
tree | 80eb49f8c4f0bf09eb83517e42533cca45dae5d6 /test/pixman-rotate.c | |
parent | 94bdbc15f79308269f1bcd74b3d8899f8458babc (diff) |
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.
Diffstat (limited to 'test/pixman-rotate.c')
-rw-r--r-- | test/pixman-rotate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/pixman-rotate.c b/test/pixman-rotate.c index 9c3a0fb20..e02d91824 100644 --- a/test/pixman-rotate.c +++ b/test/pixman-rotate.c @@ -16,7 +16,8 @@ cairo_test_t test = { "pixman-rotate", "Exposes pixman off-by-one error when rotating", - IMAGE_WIDTH, IMAGE_HEIGHT + IMAGE_WIDTH, IMAGE_HEIGHT, + draw }; /* Draw the word cairo at NUM_TEXT different angles */ @@ -70,5 +71,5 @@ draw (cairo_t *cr, int width, int height) int main (void) { - return cairo_test (&test, draw); + return cairo_test (&test); } |