eserte / perl-tk

the perl module Tk
https://metacpan.org/release/Tk
Other
44 stars 31 forks source link

Install test fail for Tk-804.032 on Perl (v5.18.2) #5

Closed shishini closed 6 years ago

shishini commented 10 years ago

When I tried to install Tk (Tk-804.032) the test failled with the below I am using Perl 5, version 18, subversion 2 (v5.18.2) built for i686-linux-thread-multi

# Tk platform:    unix
# server info:    X11R0 The X.Org Foundation 11501000
# window manager: KWin
#        version: 4.11.8 (maybe)
# XFT:            no
t/00wmcheck.t ................ ok
t/adjuster.t ................. ok
t/after.t .................... ok
.label (1):
 0 0x9ab9498   NV f=00000002 undef(1)
SV = IV(0x9ab9494) at 0x9ab9498
  REFCNT = 1
  FLAGS = ()
  IV = 0
t/async.t .................... ok
t/autoload.t ................. ok
t/balloon.t .................. ok
t/bind.t ..................... ok
t/browseentry-grabtest.t ..... ok
t/browseentry-subclassing.t .. ok
# Ignore grab problem: grab failed: window not viewable at /home/user001/.cpanplus/5.18.2/build/Tk-804.032/blib/lib/Tk/Submethods.pm line 19.
t/browseentry.t .............. ok
t/browseentry2.t ............. ok
t/button-tcl.t ............... ok
t/button.t ................... ok
t/canvas-grid.t .............. ok
t/canvas.t ................... ok
t/canvas2.t .................. ok
t/coloreditor.t .............. ok
t/create.t ................... ok
t/cursor.t ................... ok
t/dash.t ..................... ok
t/dialogbox.t ................ ok
t/dirtree.t .................. ok
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
t/entry.t .................... ok

#   Failed test ''dialog' isa 'Tk::Dialog''
#   at t/errordialog.t line 36.
#     'dialog' isn't defined

#   Failed test ''Found stacktrace window' isa 'Tk::ErrorDialog''
#   at t/errordialog.t line 39.
#     'Found stacktrace window' isn't defined
XS_Tk__Callback_Call error:Can't call method "state" on an undefined value at t/errordialog.t line 40.

XS_Tk__Callback_Call error:Intentional error.

#   Failed test 'Timeout - destroyed main window'
#   at t/errordialog.t line 49.
# Looks like you planned 5 tests but ran 4.
# Looks like you failed 3 tests of 4 run.
t/errordialog.t .............. 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 4/5 subtests 
t/eventGenerate.t ............ ok
t/exefiles.t ................. ok
t/fbox.t ..................... ok
t/fileevent.t ................ ok
t/fileevent2.t ............... ok
t/fileselect.t ............... ok
Font Courier -12 still in cache.
t/font.t ..................... ok
. (1):
 0 0x9f69aa0   NV f=00000002 undef(1)
SV = IV(0x9f69a9c) at 0x9f69aa0
  REFCNT = 1
  FLAGS = ()
  IV = 0
t/fork.t ..................... ok
t/geomgr.t ................... ok
t/iso8859-1.t ................ ok
t/itemstyle.t ................ ok
t/JP.t ....................... ok
t/KR.t ....................... ok
t/leak.t ..................... skipped: need Devel::Leak
t/list.t ..................... ok
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
t/listbox.t .................. ok
t/listvar.t .................. ok
t/magic.t .................... ok
t/mega.t ..................... ok
t/msgbox.t ................... ok
t/mwm.t ...................... ok
t/objglue.t .................. ok
t/optmenu.t .................. ok
t/photo.t .................... ok
t/pixmap.t ................... ok
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
t/progbar.t .................. ok
t/property.t ................. ok
t/regexp.t ................... ok
t/Require.t .................. ok
t/rotext.t ................... ok
t/slaves.t ................... ok
t/sv.t ....................... ok
t/table.t .................... ok
Stack moved 9950e68 => 9950e6c
t/text.t ..................... ok
untie attempted while 3 inner references still exist at t/text2.t line 59.
untie attempted while 10 inner references still exist at t/text2.t line 70.
t/text2.t .................... ok
t/textundo.t ................. ok
t/Tkxs.t ..................... ok
t/Trace.t .................... ok
t/trace1.t ................... ok

#   Failed test 'Text: left word movement'
#   at t/unicode.t line 153.
#          got: '1.20'
#     expected: '1.0'
# Looks like you failed 1 test of 13.
t/unicode.t .................. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/13 subtests 
t/widget.t ................... ok
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
t/wm-tcl.t ................... ok
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
# Start update 2
# . update 0.333 2
# .label update 0.353 1
# Start Popup 2
# .toplevel Popup 0.0663 2
# .toplevel.label Popup 0.0764 1
# Start withdraw 0
# Start Popup Again 2
# .toplevel Popup Again 0.067 2
# .toplevel.label Popup Again 0.0749 1
# Start destroy 0
t/wm-time.t .................. ok
t/wm.t ....................... ok
t/X.t ........................ ok
t/zzHList.t .................. ok
t/zzPhoto.t .................. ok
t/zzScrolled.t ............... ok
t/zzText.t ................... ok
t/zzTixGrid.t ................ ok

Test Summary Report
-------------------
t/canvas.t                 (Wstat: 0 Tests: 166 Failed: 0)
  TODO passed:   124
t/errordialog.t            (Wstat: 768 Tests: 4 Failed: 3)
  Failed tests:  2-4
  Non-zero exit status: 3
  Parse errors: Bad plan.  You planned 5 tests but ran 4.
t/listbox.t                (Wstat: 0 Tests: 537 Failed: 0)
  TODO passed:   328, 502
t/text.t                   (Wstat: 0 Tests: 415 Failed: 0)
  TODO passed:   121
t/unicode.t                (Wstat: 256 Tests: 13 Failed: 1)
  Failed test:  9
  Non-zero exit status: 1
t/wm-tcl.t                 (Wstat: 0 Tests: 315 Failed: 0)
  TODO passed:   64, 86-87, 154-161, 164-165, 171-178, 181-182
                220, 225, 227, 232, 235-236, 264-269, 275-276
                280-283, 300
t/zzScrolled.t             (Wstat: 0 Tests: 94 Failed: 0)
  TODO passed:   52, 66, 80, 94
Files=74, Tests=4347, 99 wallclock secs ( 1.26 usr  0.11 sys + 17.78 cusr  1.58 csys = 20.73 CPU)
Result: FAIL
Failed 2/74 test programs. 4/4347 subtests failed.
make: *** [test_dynamic] Error 255

The tests for 'Tk' failed. Would you like me to proceed anyway or should we abort?

Proceed anyway? [y/N]: n
[ERROR] Unable to create a new distribution object for 'Tk' -- cannot continue

*** Install log written to:
  /home/user001/.cpanplus/install-logs/Tk-804.032-1398292164.log

Error installing 'Tk'
Problem installing one or more modules
*** You can view the complete error buffer by pressing 'p' ***
eserte commented 10 years ago

Can you tell me your Linux distribution (including distribution version) and maybe the desktop system or window manager you're using (probably it's KDE, but the diagnostics section in the test suite says "maybe")?

shishini commented 10 years ago

yes its kde, i am using kubuntu 14.04

~$ uname -a
Linux  3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:08:14 UTC 2014 i686 i686 i686 GNU/Linux
eserte commented 10 years ago

Thanks.

I see two errors: in t/errordialog.t and in t/unicode.t. Actually I could reproduce the first error running the test suite over a remote X11 connection. My suspicion is that the dialog does not materialize quick enough here, and that the test should wait a little longer. For the 2nd test I have no idea, but timing problems are also possible here.

eserte commented 9 years ago

There's also a fix for the unicode.t problem (commit fbc5f370ceec00cad9f83c68f2e244b5e66c696a). Can you confirm that the latest Tk from github fixes your problems?

shishini commented 9 years ago

sorry for the late reply i just cloned this repo few minutes ago run the following command

perl Makefile.PL make make test

and here is the result from make test

laptop:~/dev/perl/perl-tk$ make test
cd pTk && make DEFINE="" LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-O2" PREFIX="/home/ali/perl5/perlbrew/perls/perl-5.18.2-threaded" PASTHRU_DEFINE="" PASTHRU_INC=""
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/pTk'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/pTk'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/pTk'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/pTk'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/pod'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/pod'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/demos'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/demos'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/Xlib'
make[2]: Entering directory '/home/ali/dev/perl/perl-tk/Xlib/X'
make[2]: Leaving directory '/home/ali/dev/perl/perl-tk/Xlib/X'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/Xlib'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/WinPhoto'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/WinPhoto'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/Tixish'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/Tixish'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/TixPixmap'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/TixPixmap'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/TixGrid'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/TixGrid'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/TextList'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/TextList'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/Text'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/Text'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/TList'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/TList'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/Scrollbar'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/Scrollbar'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/Scale'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/Scale'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/PNG'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/PNG'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/NBFrame'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/NBFrame'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/Mwm'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/Mwm'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/Menubutton'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/Menubutton'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/Listbox'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/Listbox'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/JPEG'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/JPEG'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/InputO'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/InputO'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/IO'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/IO'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/HList'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/HList'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/Event'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/Event'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/Entry'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/Entry'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/DragDrop'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/DragDrop'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/Compound'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/Compound'
make[1]: Entering directory '/home/ali/dev/perl/perl-tk/Canvas'
make[1]: Leaving directory '/home/ali/dev/perl/perl-tk/Canvas'
/home/ali/perl5/perlbrew/perls/perl-5.18.2-threaded/bin/perl "-It" "-MTkTest" "-e" "checked_test_harness('./xt', 0, 'blib/lib', 'blib/arch')" t/00wmcheck.t t/JP.t t/KR.t t/Require.t t/Tkxs.t t/Trace.t t/X.t t/adjuster.t t/after.t t/async.t t/autoload.t t/balloon.t t/bind.t t/browseentry-grabtest.t t/browseentry-subclassing.t t/browseentry.t t/browseentry2.t t/button-tcl.t t/button.t t/canvas-grid.t t/canvas.t t/canvas2.t t/coloreditor.t t/create.t t/cursor.t t/dash.t t/dialogbox.t t/dirtree.t t/entry.t t/errordialog.t t/eventGenerate.t t/exefiles.t t/fbox.t t/fileevent.t t/fileevent2.t t/fileselect.t t/font.t t/fork.t t/geomgr.t t/iso8859-1.t t/itemstyle.t t/leak.t t/list.t t/listbox.t t/listvar.t t/magic.t t/mega.t t/msgbox.t t/mwm.t t/objglue.t t/optmenu.t t/photo.t t/pixmap.t t/progbar.t t/property.t t/regexp.t t/rotext.t t/slaves.t t/sv.t t/table.t t/text.t t/text2.t t/textundo.t t/trace1.t t/unicode.t t/widget.t t/wm-tcl.t t/wm-time.t t/wm.t t/zzHList.t t/zzPhoto.t t/zzScrolled.t t/zzText.t t/zzTixGrid.t
t/00wmcheck.t ................ QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
t/00wmcheck.t ................ 1/1 # 
# Tk platform:    unix
# server info:    X11R0 The X.Org Foundation 11600000
# window manager: KWin
#        version: 4.11.12 (maybe)
# XFT:            yes
t/00wmcheck.t ................ ok   
t/adjuster.t ................. ok   
t/after.t .................... ok   
t/async.t .................... ok   
t/autoload.t ................. ok   
t/balloon.t .................. ok     
t/bind.t ..................... ok   
t/browseentry-grabtest.t ..... ok   
t/browseentry-subclassing.t .. ok   
t/browseentry.t .............. 8/22 # Ignore grab problem: grab failed: window not viewable at /home/ali/dev/perl/perl-tk/blib/lib/Tk/Submethods.pm line 19.
t/browseentry.t .............. ok     
t/browseentry2.t ............. ok   
t/button-tcl.t ............... ok       
t/button.t ................... ok   
t/canvas-grid.t .............. ok   
t/canvas.t ................... ok       
t/canvas2.t .................. ok     
t/coloreditor.t .............. ok   
t/create.t ................... ok       
t/cursor.t ................... ok   
t/dash.t ..................... ok   
t/dialogbox.t ................ ok     
t/dirtree.t .................. ok   
t/entry.t .................... QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
t/entry.t .................... 189/351 QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
t/entry.t .................... ok       
t/errordialog.t .............. 1/5 XS_Tk__Callback_Call error:Intentional error.

t/errordialog.t .............. 2/5 XS_Tk__Callback_Call error:Intentional error.

t/errordialog.t .............. ok   
t/eventGenerate.t ............ ok   
t/exefiles.t ................. ok   
t/fbox.t ..................... ok     
t/fileevent.t ................ ok   
t/fileevent2.t ............... ok   
t/fileselect.t ............... ok   
t/font.t ..................... 1/34 Font Courier -12 still in cache.
t/font.t ..................... ok     
t/fork.t ..................... ok   
t/geomgr.t ................... ok     
t/iso8859-1.t ................ ok     
t/itemstyle.t ................ ok   
t/JP.t ....................... ok       
t/KR.t ....................... ok       
t/leak.t ..................... skipped: need Devel::Leak
t/list.t ..................... ok   
t/listbox.t .................. 1/537 QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
t/listbox.t .................. 320/537 
#   Failed test at t/listbox.t line 1312.
#                   'y 0 0'
#     doesn't match '(?^:^y 0 0\.\d+)'

#   Failed test at t/listbox.t line 1320.
#                   'y 0 0'
#     doesn't match '(?^:^y 0 0\.\d+)'
t/listbox.t .................. 387/537 
#   Failed test at t/listbox.t line 1482.
#                   'y 0 0'
#     doesn't match '(?^:y 0 0\.\d+)'

#   Failed test at t/listbox.t line 1490.
#                   'y 0 0'
#     doesn't match '(?^:^y 0 0\.\d+$)'
t/listbox.t .................. 498/537 # Looks like you failed 4 tests of 537.
t/listbox.t .................. Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/537 subtests 
        (less 81 skipped subtests: 452 okay)
        (2 TODO tests unexpectedly succeeded)
t/listvar.t .................. ok     
t/magic.t .................... ok   
t/mega.t ..................... ok   
t/msgbox.t ................... ok     
t/mwm.t ...................... ok   
t/objglue.t .................. ok   
t/optmenu.t .................. ok     
t/photo.t .................... ok       
t/pixmap.t ................... ok   
t/progbar.t .................. QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
t/progbar.t .................. ok     
t/property.t ................. ok     
t/regexp.t ................... ok     
t/Require.t .................. ok     
t/rotext.t ................... ok   
t/slaves.t ................... ok     
t/sv.t ....................... ok   
t/table.t .................... ok     
t/text.t ..................... 279/415 Stack moved 9c747d0 => 9c747d4
t/text.t ..................... ok       
t/text2.t .................... 1/11 untie attempted while 3 inner references still exist at t/text2.t line 59.
untie attempted while 10 inner references still exist at t/text2.t line 70.
t/text2.t .................... ok     
t/textundo.t ................. ok   
t/Tkxs.t ..................... ok     
t/Trace.t .................... ok   
t/trace1.t ................... ok     
t/unicode.t .................. ok     
t/widget.t ................... ok     
t/wm-tcl.t ................... QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
t/wm-tcl.t ................... ok       
t/wm-time.t .................. QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
# Start update 2
# . update 0.614 2
# .label update 0.654 2
t/wm-time.t .................. ok   
t/wm.t ....................... ok   
t/X.t ........................ ok   
t/zzHList.t .................. ok     
t/zzPhoto.t .................. ok     
t/zzScrolled.t ............... ok     
t/zzText.t ................... ok     
t/zzTixGrid.t ................ ok     

Test Summary Report
-------------------
t/canvas.t                 (Wstat: 0 Tests: 166 Failed: 0)
  TODO passed:   124
t/listbox.t                (Wstat: 1024 Tests: 537 Failed: 4)
  Failed tests:  356-357, 392-393
  TODO passed:   328, 502
  Non-zero exit status: 4
t/text.t                   (Wstat: 0 Tests: 415 Failed: 0)
  TODO passed:   121
t/wm-tcl.t                 (Wstat: 0 Tests: 315 Failed: 0)
  TODO passed:   64, 86-87, 154-157, 160-161, 164-165, 173-178
                181-182, 220, 225, 227, 232, 235-236, 242
                264-269, 275-276, 280-283, 300
t/wm-time.t                (Wstat: 0 Tests: 4 Failed: 0)
  TODO passed:   1-4
t/zzScrolled.t             (Wstat: 0 Tests: 94 Failed: 0)
  TODO passed:   52, 66, 80, 94
Files=74, Tests=4348, 148 wallclock secs ( 1.33 usr  0.14 sys + 24.78 cusr  1.90 csys = 28.15 CPU)
Result: FAIL
Failed 1/74 test programs. 4/4348 subtests failed.
Makefile:1654: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
shishini commented 6 years ago

archive