From: Matthias Clasen Date: Tue, 7 Feb 2023 12:54:22 +0000 (-0500) Subject: Drop pixbuf format tests X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~7^2~27^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ddf8c4dd1abe28431ed7fecb172c02e2927b5a78;p=gtk4.git Drop pixbuf format tests We have our own loaders for the formats we always want to support, so we don't need to check for what gdk-pixbuf supports. --- diff --git a/testsuite/gdk/meson.build b/testsuite/gdk/meson.build index f3d3a1ba4a..ebaa66fcc9 100644 --- a/testsuite/gdk/meson.build +++ b/testsuite/gdk/meson.build @@ -19,7 +19,6 @@ tests = [ { 'name': 'glcontext' }, { 'name': 'keysyms' }, { 'name': 'memorytexture' }, - { 'name': 'pixbuf' }, { 'name': 'rectangle' }, { 'name': 'rgba' }, { 'name': 'seat' }, diff --git a/testsuite/gdk/pixbuf.c b/testsuite/gdk/pixbuf.c deleted file mode 100644 index 62d68c3a77..0000000000 --- a/testsuite/gdk/pixbuf.c +++ /dev/null @@ -1,42 +0,0 @@ -#include - -static void -test_format (gconstpointer d) -{ - const char *f = d; - GSList *formats; - gboolean found; - - found = FALSE; - - formats = gdk_pixbuf_get_formats (); - - for (GSList *l = formats; l && !found; l = l->next) - { - GdkPixbufFormat *format = l->data; - char *name; - - name = gdk_pixbuf_format_get_name (format); - - if (strcmp (name, f) == 0) - found = TRUE; - - g_free (name); - } - - g_slist_free (formats); - - g_assert_true (found); -} - - -int -main (int argc, char *argv[]) -{ - (g_test_init) (&argc, &argv, NULL); - - g_test_add_data_func ("/pixbuf/format/png", "png", test_format); - g_test_add_data_func ("/pixbuf/format/jpeg", "jpeg", test_format); - - return g_test_run (); -}