Skip Menu |

This queue is for tickets about the Gtk3 CPAN distribution.

Report information
The Basics
Id: 89189
Status: resolved
Priority: 0/
Queue: Gtk3

People
Owner: Nobody in particular
Requestors: dan [...] berrange.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.013
Fixed in: (no value)



Subject: t/zz-GtkImage.t test fails with GTK 3.10
Running the test suite on Fedora 20, which has GTK 3.10, I see two fails in zz-GtkImage.t PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/zz-GtkImage.t t/zz-GtkImage.t .. 1..32 ok 1 - Gtk3::Image->new not ok 2 - get_icon_set empty # Failed test 'get_icon_set empty' # at t/zz-GtkImage.t line 49. # Structures begin differing at: # $got->[1] = 'button' # $expected->[1] = 'invalid' ok 3 - get_pixbuf empty not ok 4 - get_stock empty # Failed test 'get_stock empty' # at t/zz-GtkImage.t line 51. # Structures begin differing at: # $got->[1] = 'button' # $expected->[1] = 'invalid' ok 5 - get_animation empty ok 6 - get_storage_type empty ok 7 - Gtk3::Image->new_from_stock ok 8 - new_from_stock get_storage_type ok 9 - new_from_stock get_stock ok 10 - Gtk3::Image->new_from_icon_set ok 11 - new_from_icon_set get_icon_set num rets ok 12 - 'new_from_icon_set get_icon_set icon_set' isa 'Gtk3::IconSet' ok 13 - new_from_icon_set get_icon_set size ok 14 - Gtk3::Image->new_from_pixbuf ok 15 - 'new_from_pixbuf get_pixbuf' isa 'Gtk3::Gdk::Pixbuf' ok 16 - set_from_stock get_storage_type ok 17 - set_from_stock get_stock ok 18 - set_from_icon_set get_icon_set num rets ok 19 - 'set_from_icon_set get_icon_set icon_set' isa 'Gtk3::IconSet' ok 20 - set_from_icon_set get_icon_set size ok 21 - 'set_from_pixbuf get_pixbuf' isa 'Gtk3::Gdk::Pixbuf' ok 22 # skip unable to find test file, ./gtk-demo/gnome-foot.png ok 23 # skip unable to find test file, ./gtk-demo/gnome-foot.png ok 24 # skip unable to find test file, ./gtk-demo/gnome-foot.png ok 25 # skip unable to find test file, ./gtk-demo/gnome-foot.png ok 26 # skip unable to find test file, ./gtk-demo/gnome-foot.png ok 27 # skip unable to find test file, ./gtk-demo/gnome-foot.png ok 28 # skip unable to find test file, ./gtk-demo/gnome-foot.png ok 29 - 'new_from_icon_name isa Gtk3::Image' isa 'Gtk3::Image' ok 30 - deep get_icon_name ok 31 - get_icon_name from Gtk3::Image set_from_icon_name ok 32 - Gtk3::Image get_pixel_size # Looks like you failed 2 tests of 32. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/32 subtests (less 7 skipped subtests: 23 okay) Test Summary Report ------------------- t/zz-GtkImage.t (Wstat: 512 Tests: 32 Failed: 2) Failed tests: 2, 4 Non-zero exit status: 2 Files=1, Tests=32, 0 wallclock secs ( 0.03 usr 0.03 sys + 0.20 cusr 0.13 csys = 0.39 CPU) Result: FAIL Failed 1/1 test programs. 2/32 subtests failed. make: *** [test_dynamic] Error 2 The release notes for GTK 3.10 mentioned that gtk_icon_set & get_stock have been deprecated, so I presume some change related to this has invalidated a test suite assumption.
Yeah, these values seem to be unreliable. The test failure should be fixed in git master with <https://git.gnome.org/browse/perl-Gtk3/commit/?id=f7d7adc6910f383ee6f92e09f76ebc6e289ebe1c>. Thanks for the report.