Gtk2-1.247 installation error with proposed fix at the end



Hi,

after a loooong break, I just started to play with Gtk-Perl again.

I tried to install Gtk2 on Ubuntu on a manually compiled perl version 5.18.0
using cpanm

I got the following error:

t/GtkRecentFilter.t ................ ok
Unable to remove the test storage file at t/GtkRecentManager.t line 130.
# Looks like your test exited with 2 just after 36.
t/GtkRecentManager.t ...............
Dubious, test returned 2 (wstat 512, 0x200)
All 36 subtests passed
t/GtkRuler.t ....................... ok


and a bunch of warnings:

PERL_DL_NONLAZY=1 /home/gabor/perl-5.18.0-desktop/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
# Testing Gtk2 1.247
#    Running against gtk+ 2.24.17
#   Compiled against gtk+ 2.24.17
[...]
t/GdkPixbufSimpleAnim.t ............ ok
Gdk-WARNING **: XID collision, trouble ahead at t/GdkPixmap.t line 16.
Gdk-WARNING **: XID collision, trouble ahead at t/GdkPixmap.t line 25.
Gdk-WARNING **: XID collision, trouble ahead at t/GdkPixmap.t line 40.
t/GdkPixmap.t ...................... ok
[...]
t/GtkBuildable.t ................... ok
GLib-GObject-WARNING **:
/build/buildd/glib2.0-2.36.0/./gobject/gsignal.c:1220: unable to
lookup signal "changed" for non instantiatable type `GtkBuildable' at
/home/gabor/perl-5.18.0-desktop/lib/site_perl/5.18.0/x86_64-linux-thread-multi/Glib/Object/Subclass.pm
line 235.
t/GtkBuildableIface.t .............. ok
t/GtkBuilder.t ..................... ok
t/GtkButton.t ...................... ok
t/GtkButtonBox.t ................... ok
t/GtkCalendar.t .................... ok
GLib-GObject-CRITICAL **: Object class EditableTest doesn't implement
property 'editing-canceled' from interface 'GtkCellEditable' at
/home/gabor/perl-5.18.0-desktop/lib/site_perl/5.18.0/x86_64-linux-thread-multi/Glib/Object/Subclass.pm
line 235.
t/GtkCellEditable.t ................ ok
[...]
t/GtkDialog.t ...................... ok
Gdk-CRITICAL **: IA__gdk_window_get_screen: assertion `GDK_IS_WINDOW
(window)' failed at t/GtkDnd.t line 55.
Gtk-CRITICAL **: IA__gtk_drag_set_icon_pixmap: assertion `!mask ||
gdk_window_get_screen (mask) == screen' failed at t/GtkDnd.t line 55.
t/GtkDnd.t ......................... ok
[...]
t/GtkMenu.t ........................ ok
GLib-CRITICAL **: g_strrstr: assertion `haystack != NULL' failed at
t/GtkMenuBar.t line 7.
GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed at
t/GtkMenuBar.t line 7.
t/GtkMenuBar.t ..................... ok
[...]
t/GtkRecentFilter.t ................ ok
Unable to remove the test storage file at t/GtkRecentManager.t line 130.
# Looks like your test exited with 2 just after 36.
t/GtkRecentManager.t ...............
Dubious, test returned 2 (wstat 512, 0x200)
All 36 subtests passed
t/GtkRuler.t ....................... ok
[...]
t/GtkTextBuffer.t .................. ok
GLib-WARNING **:
(/build/buildd/glib2.0-2.36.0/./glib/gerror.c:390):g_error_new_valist:
runtime check failed: (domain != 0) at t/GtkTextBufferRichText.t line
210, <DATA> line 1.
t/GtkTextBufferRichText.t .......... ok


For now I used the --force, but I thought you might be interested to
know about this.

Looking at the source of that test file, I started to wonder, wouldn't
it be better to use
a file in a temporary directory instead of one in the current directory?

at the top of t/GtkRecentManager.t :

use File::Temp qw(tempdir);
my $dir = tempdir(CLEANUP => 1);
$manager = Glib::Object::new('Gtk2::RecentManager', filename =>
"$dir/test.xbel");


regards
   Gabor
   http://szabgab.com/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]