summaryrefslogtreecommitdiff
path: root/dev-perl/Gtk2/files/Gtk2-1.249.930-skip-pixbuf-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl/Gtk2/files/Gtk2-1.249.930-skip-pixbuf-test.patch')
-rw-r--r--dev-perl/Gtk2/files/Gtk2-1.249.930-skip-pixbuf-test.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-perl/Gtk2/files/Gtk2-1.249.930-skip-pixbuf-test.patch b/dev-perl/Gtk2/files/Gtk2-1.249.930-skip-pixbuf-test.patch
new file mode 100644
index 000000000000..b64d9470a48e
--- /dev/null
+++ b/dev-perl/Gtk2/files/Gtk2-1.249.930-skip-pixbuf-test.patch
@@ -0,0 +1,24 @@
+https://bugs.gentoo.org/774396
+https://git.launchpad.net/ubuntu/+source/libgtk2-perl/tree/debian/patches/new_gdk_pixbuf.patch
+
+# Description: skip a test that is made invalid by the new gdk-pixbuf
+# Upstream: https://gitlab.gnome.org/GNOME/perl-gtk2/issues/3
+#
+--- a/t/GdkPixbuf.t
++++ b/t/GdkPixbuf.t
+@@ -123,9 +123,12 @@ my $log = Glib::Log->set_handler ('GdkPi
+ $pixbuf = Gtk2::Gdk::Pixbuf->new_from_xpm_data (@test_xpm[0..2]);
+ ok (! defined ($pixbuf), "Don't crash on broken pixmap data");
+ $pixbuf = Gtk2::Gdk::Pixbuf->new_from_xpm_data (@test_xpm[0..5]);
+-ok (defined $pixbuf, "Don't crash on partial pixmap data");
+-Glib::Log->remove_handler ('GdkPixbuf', $log);
+-
++SKIP: {
++ skip 'new gdk-pixbuf error out on invalid xpm', 1;
++
++ ok (defined $pixbuf, "Don't crash on partial pixmap data");
++ Glib::Log->remove_handler ('GdkPixbuf', $log);
++}
+
+ # raw pixel values to make the xpm above
+ my $rawdata = pack 'C*',