summaryrefslogtreecommitdiff
path: root/test/pdf-mime-data.c
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2021-03-08 17:27:52 +0100
committerUli Schlachter <psychon@znc.in>2021-03-08 17:27:52 +0100
commit2a8d90c6fce458151f7bd3982fcaa964c4f72195 (patch)
tree480c15b66cc0feaa30f6a42cf2b50bd08cac8779 /test/pdf-mime-data.c
parent0c64c216aaf44d476637879d998fef96f0164762 (diff)
downloadcairo-2a8d90c6fce458151f7bd3982fcaa964c4f72195.tar.gz
pdf-mime-data: Fix for out-of-tree builds
This makes the code use the existing helper for loading PNGs that also considers the $srcdir environment variable. This makes it find the file in out of tree builds. Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'test/pdf-mime-data.c')
-rw-r--r--test/pdf-mime-data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pdf-mime-data.c b/test/pdf-mime-data.c
index 7033f6051..beefa01b3 100644
--- a/test/pdf-mime-data.c
+++ b/test/pdf-mime-data.c
@@ -112,7 +112,7 @@ preamble (cairo_test_context_t *ctx)
if (! cairo_test_is_target_enabled (ctx, "pdf"))
return CAIRO_TEST_UNTESTED;
- image = cairo_image_surface_create_from_png (IMAGE_FILE ".png");
+ image = cairo_test_create_surface_from_png (ctx, IMAGE_FILE ".png");
test_status = read_file (ctx, IMAGE_FILE ".jpg", &data, &len);
if (test_status) {
return test_status;