After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 709331 - Test failures with Gtk::Image in v0.013
Test failures with Gtk::Image in v0.013
Status: RESOLVED FIXED
Product: gnome-perl
Classification: Bindings
Component: Gtk3
unspecified
Other Mac OS
: Normal trivial
: ---
Assigned To: gtk2-perl-bugs
gtk2-perl-bugs
Depends on:
Blocks:
 
 
Reported: 2013-10-03 02:37 UTC by N Heinrichs
Modified: 2013-12-06 22:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description N Heinrichs 2013-10-03 02:37:57 UTC
* OS: OSX Mountain Lion (10.8.4)
* Gtk+3: 3.10.0 (installed via Homebrew)
* Object introspection enabled in atk, gdk-pixbuf, pango and gtk+3 per patches here: https://github.com/mxcl/homebrew/pull/22314

Regarding the comment below at https://mail.gnome.org/archives/gtk-perl-list/2013-February/msg00018.html
"But I think these are actually due to changes in gtk+. At some point, these getters started returning a GtkIconSize of 0, which translates to "invalid". gtk+ 2 returned 4 aka. "button" by default, instead."

I appear to be experiencing the opposite:

`perl Makefile.PL && make && make test`
...
t/zz-GtkImage.t ................ 1/32 
#   Failed test 'get_icon_set empty'
#   at t/zz-GtkImage.t line 49.
#     Structures begin differing at:
#          $got->[1] = 'button'
#     $expected->[1] = 'invalid'

#   Failed test 'get_stock empty'
#   at t/zz-GtkImage.t line 51.
#     Structures begin differing at:
#          $got->[1] = 'button'
#     $expected->[1] = 'invalid'
# Looks like you failed 2 tests of 32.
t/zz-GtkImage.t ................ Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/32 subtests 
	(less 7 skipped subtests: 23 okay)


Please let me know if you need any further details.

-Nate
Comment 1 Torsten Schoenfeld 2013-12-06 22:47:47 UTC
Yeah, these values seem to be unreliable.  Should be fixed now in git master with <https://git.gnome.org/browse/perl-Gtk3/commit/?id=f7d7adc6910f383ee6f92e09f76ebc6e289ebe1c>.  Thanks for the report.