[gdk-pixbuf] Make serialization test work installed



commit 9fa5a6c63f584b3813da2f04a31b63196a290b09
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri May 31 19:35:57 2013 -0400

    Make serialization test work installed

 tests/Makefile.am             |    2 ++
 tests/pixbuf-icon-serialize.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index f09904c..40b3b3a 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 7d35a20..20bf6e1 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]