summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-04-02 12:45:56 +0100
committerEmmanuele Bassi <ebassi@gmail.com>2020-04-02 12:09:16 +0000
commit15cd65aa8f8fa413ca9eba597e3f825a96b36e73 (patch)
treedbd07ccb02884802d0b5006d8a788c33ba269de0 /tests
parent19eed7d3e34ddb18f23de1e44157f27b059cc8b6 (diff)
downloadgdk-pixbuf-15cd65aa8f8fa413ca9eba597e3f825a96b36e73.tar.gz
tests: Skip composite test when PNG is unsupported
Diffstat (limited to 'tests')
-rw-r--r--tests/pixbuf-composite.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pixbuf-composite.c b/tests/pixbuf-composite.c
index d701f472f..14968c491 100644
--- a/tests/pixbuf-composite.c
+++ b/tests/pixbuf-composite.c
@@ -64,6 +64,13 @@ test_composite2 (void)
GdkPixbuf *src, *dest;
guchar *pixels, *p;
+ char *filename = g_test_get_filename (G_TEST_DIST, "test-image.png", NULL);
+ if (!format_supported (filename))
+ {
+ g_test_skip ("PNG format not supported");
+ return;
+ }
+
src = gdk_pixbuf_new_from_file (g_test_get_filename (G_TEST_DIST, "test-image.png", NULL), NULL);
{