diff options
author | Bryce W. Harrington <b.harrington@samsung.com> | 2013-09-08 20:10:03 +0000 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2013-09-09 21:15:50 +0200 |
commit | 6731023f1bba7e26dbbc06defdbb37ac5267e9db (patch) | |
tree | bb511744e86f09160ae892bbde227ae902957dd4 /test/png.c | |
parent | f3574b8b3b3e9dbd9fca927096e5a8205e57033d (diff) | |
download | cairo-6731023f1bba7e26dbbc06defdbb37ac5267e9db.tar.gz |
test: Fix several tests to place output files in the output directory
The standard location for test output is cairo/test/output. The harness
itself was updated to write automatically generated images in this
directory, however a number of tests generate their own local output
files.
This patch updates these tests to write their output into
CAIRO_TEST_OUTPUT_DIR (which defaults to cairo/test/output) as well, in
the interest of decluttering the test directory.
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'test/png.c')
-rw-r--r-- | test/png.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/png.c b/test/png.c index 3980ddca5..1dfc793ec 100644 --- a/test/png.c +++ b/test/png.c @@ -30,6 +30,7 @@ /* Test the idempotency of write_png->read_png */ #define RGB_MASK 0x00ffffff +#define BASENAME "png.out" static cairo_bool_t image_surface_equals (cairo_surface_t *A, cairo_surface_t *B) @@ -77,7 +78,7 @@ print_surface (const cairo_test_context_t *ctx, cairo_surface_t *surface) static cairo_test_status_t preamble (cairo_test_context_t *ctx) { - const char *filename = "png.out.png"; + const char *filename = CAIRO_TEST_OUTPUT_DIR "/" BASENAME ".png"; cairo_surface_t *surface0, *surface1; cairo_status_t status; uint32_t argb32 = 0xdeadbede; |