summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-05-31 19:35:57 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-05-31 19:38:01 -0400
commit9fa5a6c63f584b3813da2f04a31b63196a290b09 (patch)
tree1bc7c914a88edb1be6bd6e75ff31285aeee64df2
parent0e6004afbcee78af31a8dd2ec8a6751ef02839e4 (diff)
downloadgdk-pixbuf-9fa5a6c63f584b3813da2f04a31b63196a290b09.tar.gz
Make serialization test work installed
-rw-r--r--tests/Makefile.am2
-rw-r--r--tests/pixbuf-icon-serialize.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index f09904caa..40b3b3a47 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -40,6 +40,8 @@ insttest_PROGRAMS = \
pixbuf-threads \
$(NULL)
+insttest_DATA = test-image.png
+
testimagedir = $(insttestdir)/test-images
testimage_DATA = $(wildcard test-images/*)
diff --git a/tests/pixbuf-icon-serialize.c b/tests/pixbuf-icon-serialize.c
index 7d35a20af..20bf6e1e1 100644
--- a/tests/pixbuf-icon-serialize.c
+++ b/tests/pixbuf-icon-serialize.c
@@ -13,7 +13,7 @@ test_serialize (void)
GIcon *icon;
GInputStream *stream;
- pixbuf = gdk_pixbuf_new_from_file (ABS_SRCDIR "/test-image.png", &error);
+ pixbuf = gdk_pixbuf_new_from_file (g_test_get_filename (G_TEST_DIST, "test-image.png", NULL), &error);
g_assert_no_error (error);
g_assert (pixbuf != NULL);