[gdk-pixbuf/issue-123: 1/4] tests: Skip GIF test when the format is not supported
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf/issue-123: 1/4] tests: Skip GIF test when the format is not supported
- Date: Thu, 2 Apr 2020 11:48:56 +0000 (UTC)
commit f154d9d5c9256e78503acbce442cfc80f300f842
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]