[gdk-pixbuf/issue-123: 4/7] tests: Skip GIF test when the format is not supported



commit e3adcf0c86dbd56b01d0d55f29a95065cbd95eb8
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Apr 2 12:44:03 2020 +0100

    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(+)
---
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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]