summaryrefslogtreecommitdiff
path: root/test/multi-page.c
diff options
context:
space:
mode:
authorBryce W. Harrington <b.harrington@samsung.com>2013-09-08 20:10:03 +0000
committerUli Schlachter <psychon@znc.in>2013-09-09 21:15:50 +0200
commit6731023f1bba7e26dbbc06defdbb37ac5267e9db (patch)
treebb511744e86f09160ae892bbde227ae902957dd4 /test/multi-page.c
parentf3574b8b3b3e9dbd9fca927096e5a8205e57033d (diff)
downloadcairo-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/multi-page.c')
-rw-r--r--test/multi-page.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/multi-page.c b/test/multi-page.c
index 0b7390268..dea3b4279 100644
--- a/test/multi-page.c
+++ b/test/multi-page.c
@@ -51,6 +51,7 @@
#define HEIGHT_IN_INCHES 3
#define WIDTH_IN_POINTS (WIDTH_IN_INCHES * 72.0)
#define HEIGHT_IN_POINTS (HEIGHT_IN_INCHES * 72.0)
+#define BASENAME "multi-page.out"
static void
draw_smiley (cairo_t *cr, double width, double height, double smile_ratio)
@@ -142,7 +143,7 @@ preamble (cairo_test_context_t *ctx)
if (result == CAIRO_TEST_UNTESTED)
result = CAIRO_TEST_SUCCESS;
- filename = "multi-page.out.ps";
+ filename = CAIRO_TEST_OUTPUT_DIR "/" BASENAME ".ps";
surface = cairo_ps_surface_create (filename,
WIDTH_IN_POINTS, HEIGHT_IN_POINTS);
status = cairo_surface_status (surface);
@@ -165,7 +166,7 @@ preamble (cairo_test_context_t *ctx)
if (result == CAIRO_TEST_UNTESTED)
result = CAIRO_TEST_SUCCESS;
- filename = "multi-page.out.pdf";
+ filename = CAIRO_TEST_OUTPUT_DIR "/" BASENAME ".pdf";
surface = cairo_pdf_surface_create (filename,
WIDTH_IN_POINTS, HEIGHT_IN_POINTS);
status = cairo_surface_status (surface);