summaryrefslogtreecommitdiff
path: root/tests/pixbuf-resource.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pixbuf-resource.c')
-rw-r--r--tests/pixbuf-resource.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pixbuf-resource.c b/tests/pixbuf-resource.c
index a747bca58..aa0bed82d 100644
--- a/tests/pixbuf-resource.c
+++ b/tests/pixbuf-resource.c
@@ -22,6 +22,7 @@
#include "config.h"
#include "gdk-pixbuf/gdk-pixbuf.h"
+#include "test-common.h"
#include <string.h>
#define compare_option(p1, p2, key) \
@@ -77,6 +78,12 @@ test_resource (void)
GError *error = NULL;
GdkPixbuf *pixbuf, *ref;
+ if (!format_supported ("png"))
+ {
+ g_test_skip ("format not supported");
+ return;
+ }
+
path = g_test_get_filename (G_TEST_DIST, "icc-profile.png", NULL);
ref = gdk_pixbuf_new_from_file (path, &error);
g_assert_no_error (error);
@@ -111,6 +118,12 @@ test_resource_at_scale (void)
GError *error = NULL;
GdkPixbuf *pixbuf, *ref;
+ if (!format_supported ("png"))
+ {
+ g_test_skip ("format not supported");
+ return;
+ }
+
path = g_test_get_filename (G_TEST_DIST, "icc-profile.png", NULL);
ref = gdk_pixbuf_new_from_file_at_scale (path, 40, 10, FALSE, &error);
g_assert_no_error (error);