From e3adcf0c86dbd56b01d0d55f29a95065cbd95eb8 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 2 Apr 2020 12:44:03 +0100 Subject: 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. --- tests/pixbuf-gif.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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); -- cgit v1.2.1