diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-04-02 12:44:03 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2020-04-02 12:09:16 +0000 |
commit | e3adcf0c86dbd56b01d0d55f29a95065cbd95eb8 (patch) | |
tree | bb87e918132f6233ad866e9bab287c7aa1d62446 | |
parent | 35dcd72bbe7a9349861ff14389a38525fe9c949f (diff) | |
download | gdk-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.
-rw-r--r-- | tests/pixbuf-gif.c | 6 |
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); |