Skip Menu |

This queue is for tickets about the Gtk2-Ex-Simple-Tree CPAN distribution.

Report information
The Basics
Id: 27465
Status: new
Priority: 0/
Queue: Gtk2-Ex-Simple-Tree

People
Owner: Nobody in particular
Requestors: djh [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.50
Fixed in: (no value)



Subject: install fails - tests apparently broken
When trying to install, it fails many tests: # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/GtkExSimpleTree....NOK 3/37 # Failed test 'inital data' # at t/GtkExSimpleTree.t line 115. t/GtkExSimpleTree....NOK 13/37 # Failed test 'top-level column store' # at t/GtkExSimpleTree.t line 127. t/GtkExSimpleTree....NOK 14/37 # Failed test 'second level column store' # at t/GtkExSimpleTree.t line 131. t/GtkExSimpleTree....NOK 15/37 # Failed test 'third level column store' # at t/GtkExSimpleTree.t line 135. t/GtkExSimpleTree....NOK 16/37 # Failed test 'top-level row store' # at t/GtkExSimpleTree.t line 139. t/GtkExSimpleTree....NOK 17/37 # Failed test 'second level row store' # at t/GtkExSimpleTree.t line 143. t/GtkExSimpleTree....NOK 18/37 # Failed test 'third level row store' # at t/GtkExSimpleTree.t line 147. t/GtkExSimpleTree....NOK 19/37 # Failed test 'top-level push' # at t/GtkExSimpleTree.t line 151. t/GtkExSimpleTree....NOK 20/37 # Failed test 'second level push' # at t/GtkExSimpleTree.t line 155. t/GtkExSimpleTree....NOK 21/37 # Failed test 'third level push' # at t/GtkExSimpleTree.t line 159. t/GtkExSimpleTree....NOK 22/37 # Failed test 'third level pop' # at t/GtkExSimpleTree.t line 162. t/GtkExSimpleTree....NOK 25/37 # Failed test 'top-level unshift' # at t/GtkExSimpleTree.t line 173. t/GtkExSimpleTree....NOK 26/37 # Failed test 'second level unshift' # at t/GtkExSimpleTree.t line 177. t/GtkExSimpleTree....NOK 27/37 # Failed test 'third level unshift' # at t/GtkExSimpleTree.t line 181. t/GtkExSimpleTree....NOK 28/37 # Failed test 'third level shift' # at t/GtkExSimpleTree.t line 184. t/GtkExSimpleTree....NOK 31/37 # Failed test 'third level delete' # at t/GtkExSimpleTree.t line 192. t/GtkExSimpleTree....NOK 32/37 # Failed test 'second level delete' # at t/GtkExSimpleTree.t line 199. t/GtkExSimpleTree....NOK 33/37 # Failed test 'top-level level delete' # at t/GtkExSimpleTree.t line 205. t/GtkExSimpleTree....NOK 34/37 # Failed test 'toplevel splice 1' # at t/GtkExSimpleTree.t line 208. t/GtkExSimpleTree....NOK 35/37 # Failed test 'toplevel splice 2' # at t/GtkExSimpleTree.t line 224. # Looks like you failed 20 tests of 37. t/GtkExSimpleTree....dubious Test returned status 20 (wstat 5120, 0x1400) DIED. FAILED tests 3, 13-22, 25-28, 31-35 Failed 20/37 tests, 45.95% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/GtkExSimpleTree.t 20 5120 37 20 3 13-22 25-28 31-35 Failed 1/1 test scripts. 20/37 subtests failed. Files=1, Tests=37, 1 wallclock secs ( 0.45 cusr + 0.03 csys = 0.48 CPU) Failed 1/1 test programs. 20/37 subtests failed. make: *** [test_dynamic] Error 20 Looking at the source of the test and modifying it to use is_deeply so I could see what is going on: ############################ @data = ( { value => [ 'one', 1, 1.1, 1, 'uno', ], children => [ { value => [ 'one-b', -1, 1.11, 1, 'uno-uno', ], }, ] }, ); ##################################### my $tdata = $stree->{data}; @{$stree->{data}} = @data; $win->show_all; warn "tdata ".Dumper($tdata)."\n\@data ".Dumper(\@data); #ok (eq_array ($tdata, \@data), 'inital data'); is_deeply( $tdata, \@data, 'initial data' ); exit; It's clear that $tdata has an extra grandchild: # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/GtkExSimpleTree....ok 1/37tdata $VAR1 = [ { 'value' => [ 'one', '1', '1.1', '1', 'uno' ], 'children' => [ { 'value' => [ 'one-b', '-1', '1.11', '1', 'uno-uno' ], 'children' => [] } ] } ]; @data $VAR1 = [ { 'value' => [ 'one', 1, '1.1', 1, 'uno' ], 'children' => [ { 'value' => [ 'one-b', -1, '1.11', 1, 'uno-uno' ] } ] } ]; t/GtkExSimpleTree....NOK 3/37 # Failed test 'initial data' # at t/GtkExSimpleTree.t line 131. # Structures begin differing at: # $got->[0]{children}[0]{children} = ARRAY(0x85a27fc) # $expected->[0]{children}[0]{children} = Does not exist # Looks like you planned 37 tests but only ran 3. # Looks like you failed 1 test of 3 run. Those two structures are clearly different. I've no idea what's wrong # perl -V Summary of my perl5 (revision 5 version 8 subversion 6) configuration: Platform: osname=linux, osvers=2.6.9, archname=i586-linux-thread-multi uname='linux g226 2.6.9 #1 smp tue jun 28 14:58:56 utc 2005 i686 i686 i386 gnulinux ' config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr -Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm -Duseshrplib=true -Doptimize=-O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -g -Wall -pipe' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -g -Wall -pipe', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe' ccversion='', gccversion='3.3.5 20050117 (prerelease) (SUSE Linux)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags ='' libpth=/lib /usr/lib /usr/local/lib libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.3.4' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.6/i586-linux-thread-multi/CORE' cccdlflags='-fPIC', lddlflags='-shared' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Locally applied patches: SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962 Built under linux Compiled at Dec 17 2005 03:23:29 %ENV: PERL5LIB="/home/dhoworth/progs/modules" PERLDOC_PAGER="vi" @INC: /home/dhoworth/progs/modules /usr/lib/perl5/5.8.6/i586-linux-thread-multi /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl . # uname -a Linux cpepc210-3 2.6.11.4-21.7-smp #1 SMP Thu Jun 2 14:23:14 UTC 2005 i686 i686 i386 GNU/Linux Suse 9.3 Perl Gtk2 version 1.144