summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-04-02 12:44:03 +0100
committerEmmanuele Bassi <ebassi@gmail.com>2020-04-02 12:09:16 +0000
commite3adcf0c86dbd56b01d0d55f29a95065cbd95eb8 (patch)
treebb87e918132f6233ad866e9bab287c7aa1d62446 /tests
parent35dcd72bbe7a9349861ff14389a38525fe9c949f (diff)
downloadgdk-pixbuf-e3adcf0c86dbd56b01d0d55f29a95065cbd95eb8.tar.gz
tests: Skip GIF test when the format is not supported
There's no point in failing the test when we know we don't support the file format.
Diffstat (limited to 'tests')
-rw-r--r--tests/pixbuf-gif.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pixbuf-gif.c b/tests/pixbuf-gif.c
index f15c24821..04b337113 100644
--- a/tests/pixbuf-gif.c
+++ b/tests/pixbuf-gif.c
@@ -79,6 +79,12 @@ run_gif_test (gconstpointer data)
int i;
GError *error = NULL;
+ if (!format_supported (filename))
+ {
+ g_test_skip ("GIF format not supported");
+ return;
+ }
+
config_file = g_key_file_new ();
g_key_file_set_list_separator (config_file, ',');
config_filename = g_strdup_printf ("%s.conf", name);