Failed test in GdkWindow.t when installing Gtk2 on Ubuntu 18.10 using Perl 5.29.3
I am trying to install Gtk2 on Ubuntu 18.10
$ perl --version
This is perl 5, version 29, subversion 3 (v5.29.3) built for x86_64-linux
$ cpanm Gtk2
--> Working on Gtk2
Fetching http://www.cpan.org/authors/id/X/XA/XAOC/Gtk2-1.24992.tar.gz
-> OK
Unpacking Gtk2-1.24992.tar.gz
Entering Gtk2-1.24992
Checking configure dependencies from META.json
Checking if you have ExtUtils::Depends 0.300 ... Yes (0.405)
Checking if you have Glib 1.280 ... Yes (1.328)
Checking if you have Pango 1.220 ... Yes (1.227)
Checking if you have ExtUtils::PkgConfig 1.030 ... Yes (1.16)
Checking if you have Cairo 1.000 ... Yes (1.106)
Configuring Gtk2-1.24992
Running Makefile.PL
[...]
[...]
# Testing Gtk2 1.24992
# Running against gtk+ 2.24.32
# Compiled against gtk+ 2.24.32
t/00.Gtk2.t ........................ ok
t/01.GtkWindow.t ................... ok
[...]
t/GdkSelection.t ................... ok
t/GdkVisual.t ...................... ok
# Failed test at t/GdkWindow.t line 140.
# Structures begin differing at:
# $got->[0] = '20'
# $expected->[0] = '10'
# Failed test at t/GdkWindow.t line 141.
# Structures begin differing at:
# $got->[0] = '20'
# $expected->[0] = '10'
# Looks like you failed 2 tests of 58.
t/GdkWindow.t ......................
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/58 subtests
The failed test at line 140 comes from this line in GdkWindow.t
:
is_deeply([$geometry -> constrain_size($mask, 22, 23)], [10, 20]);
Here, $geometry -> constrain_size($mask, 22, 23)
returns [20, 20]
,
while the test expects it to return [10, 20]
.
Edited by Håkon Hægland