Skip Menu |

This queue is for tickets about the Test-Run CPAN distribution.

Report information
The Basics
Id: 48942
Status: rejected
Priority: 0/
Queue: Test-Run

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

Bug Information
Severity: Normal
Broken in: 0.0120
Fixed in: (no value)



Subject: synopsis code barfs
After installing Test::Run, I did: cpanp -i Task::Test::Run::AllPlugins export HARNESS_PLUGINS="ColorSummary ColorFileVerdicts" runprove t/*.t I got (mostly in red): t/one....Attribute (_old5lib) does not pass the type constraint because: Validation failed for 'Str' failed with value undef at /usr/local/share/perl/5.10.0/Test/Run/Straps.pm line 901 Test::Run::Straps::_INC2PERL5LIB('Test::Run::Core::__HelperObjects::Helpers::Straps=HASH(0x9963...') called at /usr/local/share/perl/5.10.0/Test/Run/Straps.pm line 449 Test::Run::Straps::_create_parser('Test::Run::Core::__HelperObjects::Helpers::Straps=HASH(0x9963...') called at /usr/local/share/perl/5.10.0/Test/Run/Straps.pm line 521 Test::Run::Straps::analyze_fh('Test::Run::Core::__HelperObjects::Helpers::Straps=HASH(0x9963...') called at /usr/local/share/perl/5.10.0/Test/Run/Straps.pm line 532 eval {...} called at /usr/local/share/perl/5.10.0/Test/Run/Straps.pm line 531 Test::Run::Straps::_analyze_fh_wrapper('Test::Run::Core::__HelperObjects::Helpers::Straps=HASH(0x9963...') called at /usr/local/share/perl/5.10.0/Test/Run/Straps.pm line 576 Test::Run::Straps::analyze_file('Test::Run::Core::__HelperObjects::Helpers::Straps=HASH(0x9963...', 't/one.t') called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 846 eval {...} called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 845 Test::Run::Core::_time_single_test('Test::Run::Iface=HASH(0x995ad10)', 'HASH(0x9994c90)') called at /usr/local/share/perl/5.10.0/Test/Run/Base.pm line 202 Test::Run::Base::_run_sequence('Test::Run::Iface=HASH(0x995ad10)', 'ARRAY(0x998f178)') called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1390 Test::Run::Core::_run_single_test('Test::Run::Iface=HASH(0x995ad10)', 'HASH(0x9994c90)') called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1656 Test::Run::Core::_run_all_tests_loop('Test::Run::Iface=HASH(0x995ad10)') called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1667 Test::Run::Core::__ANON__() called at /usr/local/share/perl/5.10.0/Test/Run/Obj/TotObj.pm line 446 Test::Run::Obj::TotObj::benchmark_callback('Test::Run::Core::__HelperObjects::Helpers::Tot=HASH(0x99670d8)', 'CODE(0x9967018)') called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1669 Test::Run::Core::_run_all_tests__run_loop('Test::Run::Iface=HASH(0x995ad10)') called at /usr/local/share/perl/5.10.0/Test/Run/Base.pm line 202 Test::Run::Base::_run_sequence('Test::Run::Iface=HASH(0x995ad10)') called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1692 Test::Run::Core::_run_all_tests('Test::Run::Iface=HASH(0x995ad10)') called at /usr/local/share/perl/5.10.0/Test/Run/Base.pm line 202 Test::Run::Base::_run_sequence('Test::Run::Iface=HASH(0x995ad10)') called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1487 Test::Run::Core::_real_runtests('Test::Run::Iface=HASH(0x995ad10)') called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1498 eval {...} called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1498 Test::Run::Core::runtests('Test::Run::Iface=HASH(0x995ad10)') called at /usr/local/share/perl/5.10.0/Test/Run/CmdLine.pm line 142 Test::Run::CmdLine::run('Test::Run::CmdLine::Drivers::Default=HASH(0x9932a50)') called at /usr/local/share/perl/5.10.0/Test/Run/CmdLine/Iface.pm line 198 Test::Run::CmdLine::Iface::run('Test::Run::CmdLine::Iface=HASH(0x98f2ff8)') called at /usr/local/share/perl/5.10.0/Test/Run/CmdLine/Prove.pm line 226 Test::Run::CmdLine::Prove::_wet_run('Test::Run::CmdLine::Prove=HASH(0x990bb68)', 'ARRAY(0x8d35a58)') called at /usr/local/share/perl/5.10.0/Test/Run/CmdLine/Prove.pm line 205 Test::Run::CmdLine::Prove::_actual_run_tests('Test::Run::CmdLine::Prove=HASH(0x990bb68)', 'ARRAY(0x8d35a58)') called at /usr/local/share/perl/5.10.0/Test/Run/CmdLine/Prove.pm line 182 Test::Run::CmdLine::Prove::run('Test::Run::CmdLine::Prove=HASH(0x990bb68)') called at /usr/local/share/perl/5.10.0/Test/Run/CmdLine/Prove/App.pm line 23 Test::Run::CmdLine::Prove::App::run() called at /usr/local/bin/runprove line 10 t/one.t holds: use strict; use warnings; use Test::More; my $tests = 10; plan tests => $tests; for (1 .. $tests) { my $i = "one "; $i .= "1"; is $i, "one 1", "$_ ok"; } my perl is: Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=linux, osvers=2.6.24-23-server, archname=i486-linux-gnu-thread-multi uname='linux rothera 2.6.24-23-server #1 smp wed apr 1 22:22:14 utc 2009 i686 gnulinux ' config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i486-linux-gnu -Dprefix=/usr -Dprivlib=/usr/shar e/perl/5.10 -Darchlib=/usr/lib/perl/5.10 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local - Dsitelib=/usr/local/share/perl/5.10.0 -Dsitearch=/usr/local/lib/perl/5.10.0 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsitem an1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -DDEBUGGING=-g -Doptimize=-O2 -Duseshrplib -Dlibperl=libperl.so.5.10.0 -Dd_dosuid -des' hint=recommended, useposix=true, d_sigaction=define 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 -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2 -g', cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='4.3.2', 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 =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /usr/lib64 libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt perllibs=-ldl -lm -lpthread -lc -lcrypt libc=/lib/libc-2.8.90.so, so=so, useshrplib=true, libperl=libperl.so.5.10.0 gnulibc_version='2.8.90' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Jun 26 2009 19:08:22 @INC: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .
On Sun Aug 23 05:51:20 2009, PUBNOOP wrote: Show quoted text
> After installing Test::Run, I did: > > cpanp -i Task::Test::Run::AllPlugins > export HARNESS_PLUGINS="ColorSummary ColorFileVerdicts" > runprove t/*.t > > I got (mostly in red): >
Hi Pubnoop! Thanks for your report - I'm glad to know Test-Run interests some people enough to try it. In any case, it works here on my local machine (Mandriva Linux Cooker). I'm now trying to install it on my Debian Testing (Squeeze) VM , and see if I can reproduce it. It seems like you're trying to run it on a Debian system (or maybe an Ubuntu one). It would help to know the exact type and configuration of the system. Incidentally, I realised I need to release a new version of the task, which will specify newer version of all the dependency modules for easy installation, because installing Task-Test-Run-AllPlugins did nothing. So at least something good came out of it for me. Regards, Shlomi Fish Show quoted text
> > t/one....Attribute (_old5lib) does not pass the type constraint > because: > Validation failed for 'Str' failed with value undef at > /usr/local/share/perl/5.10.0/Test/Run/Straps.pm line 901 > >
Test::Run::Straps::_INC2PERL5LIB('Test::Run::Core::__HelperObjects::Helpers::Straps=HASH(0x9963...') Show quoted text
> called at /usr/local/share/perl/5.10.0/Test/Run/Straps.pm line 449 > >
Test::Run::Straps::_create_parser('Test::Run::Core::__HelperObjects::Helpers::Straps=HASH(0x9963...') Show quoted text
> called at /usr/local/share/perl/5.10.0/Test/Run/Straps.pm line 521 > >
Test::Run::Straps::analyze_fh('Test::Run::Core::__HelperObjects::Helpers::Straps=HASH(0x9963...') Show quoted text
> called at /usr/local/share/perl/5.10.0/Test/Run/Straps.pm line 532 > eval {...} called at > /usr/local/share/perl/5.10.0/Test/Run/Straps.pm line 531 > >
Test::Run::Straps::_analyze_fh_wrapper('Test::Run::Core::__HelperObjects::Helpers::Straps=HASH(0x9963...') Show quoted text
> called at /usr/local/share/perl/5.10.0/Test/Run/Straps.pm line 576 > >
Test::Run::Straps::analyze_file('Test::Run::Core::__HelperObjects::Helpers::Straps=HASH(0x9963...', Show quoted text
> 't/one.t') called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm > line 846 > eval {...} called at > /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 845 > > Test::Run::Core::_time_single_test('Test::Run::Iface=HASH(0x995ad10)', > 'HASH(0x9994c90)') called at > /usr/local/share/perl/5.10.0/Test/Run/Base.pm line 202 > > Test::Run::Base::_run_sequence('Test::Run::Iface=HASH(0x995ad10)', > 'ARRAY(0x998f178)') called at > /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1390 > > Test::Run::Core::_run_single_test('Test::Run::Iface=HASH(0x995ad10)', > 'HASH(0x9994c90)') called at > /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1656 > > Test::Run::Core::_run_all_tests_loop('Test::Run::Iface=HASH(0x995ad10)') > called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1667 > Test::Run::Core::__ANON__() called at > /usr/local/share/perl/5.10.0/Test/Run/Obj/TotObj.pm line 446 > >
Test::Run::Obj::TotObj::benchmark_callback('Test::Run::Core::__HelperObjects::Helpers::Tot=HASH(0x99670d8)', Show quoted text
> 'CODE(0x9967018)') called at > /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1669 > >
Test::Run::Core::_run_all_tests__run_loop('Test::Run::Iface=HASH(0x995ad10)') Show quoted text
> called at /usr/local/share/perl/5.10.0/Test/Run/Base.pm line 202 > > Test::Run::Base::_run_sequence('Test::Run::Iface=HASH(0x995ad10)') > called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1692 > > Test::Run::Core::_run_all_tests('Test::Run::Iface=HASH(0x995ad10)') > called at /usr/local/share/perl/5.10.0/Test/Run/Base.pm line 202 > > Test::Run::Base::_run_sequence('Test::Run::Iface=HASH(0x995ad10)') > called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1487 > > Test::Run::Core::_real_runtests('Test::Run::Iface=HASH(0x995ad10)') > called at /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1498 > eval {...} called at > /usr/local/share/perl/5.10.0/Test/Run/Core.pm line 1498 > Test::Run::Core::runtests('Test::Run::Iface=HASH(0x995ad10)') > called at /usr/local/share/perl/5.10.0/Test/Run/CmdLine.pm line 142 > >
Test::Run::CmdLine::run('Test::Run::CmdLine::Drivers::Default=HASH(0x9932a50)') Show quoted text
> called at /usr/local/share/perl/5.10.0/Test/Run/CmdLine/Iface.pm line > 198 > >
Test::Run::CmdLine::Iface::run('Test::Run::CmdLine::Iface=HASH(0x98f2ff8)') Show quoted text
> called at /usr/local/share/perl/5.10.0/Test/Run/CmdLine/Prove.pm line > 226 > >
Test::Run::CmdLine::Prove::_wet_run('Test::Run::CmdLine::Prove=HASH(0x990bb68)', Show quoted text
> 'ARRAY(0x8d35a58)') called at > /usr/local/share/perl/5.10.0/Test/Run/CmdLine/Prove.pm line 205 > >
Test::Run::CmdLine::Prove::_actual_run_tests('Test::Run::CmdLine::Prove=HASH(0x990bb68)', Show quoted text
> 'ARRAY(0x8d35a58)') called at > /usr/local/share/perl/5.10.0/Test/Run/CmdLine/Prove.pm line 182 > >
Test::Run::CmdLine::Prove::run('Test::Run::CmdLine::Prove=HASH(0x990bb68)') Show quoted text
> called at /usr/local/share/perl/5.10.0/Test/Run/CmdLine/Prove/App.pm > line 23 > Test::Run::CmdLine::Prove::App::run() called at > /usr/local/bin/runprove line 10 > > > > t/one.t holds: > > > use strict; > use warnings; > > use Test::More; > > my $tests = 10; > plan tests => $tests; > > for (1 .. $tests) { > my $i = "one "; > $i .= "1"; > is $i, "one 1", "$_ ok"; > } > > > my perl is: > > Summary of my perl5 (revision 5 version 10 subversion 0) > configuration: > Platform: > osname=linux, osvers=2.6.24-23-server, > archname=i486-linux-gnu-thread-multi > uname='linux rothera 2.6.24-23-server #1 smp wed apr 1 22:22:14 > utc > 2009 i686 gnulinux ' > config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN > -Dcccdlflags=-fPIC -Darchname=i486-linux-gnu -Dprefix=/usr > -Dprivlib=/usr/shar > e/perl/5.10 -Darchlib=/usr/lib/perl/5.10 -Dvendorprefix=/usr > -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 > -Dsiteprefix=/usr/local - > Dsitelib=/usr/local/share/perl/5.10.0 > -Dsitearch=/usr/local/lib/perl/5.10.0 -Dman1dir=/usr/share/man/man1 > -Dman3dir=/usr/share/man/man3 -Dsitem > an1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 > -Dman1ext=1 > -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh > -Ud_ualarm > -Uusesfio -Uusenm -DDEBUGGING=-g -Doptimize=-O2 -Duseshrplib > -Dlibperl=libperl.so.5.10.0 -Dd_dosuid -des' > hint=recommended, useposix=true, d_sigaction=define > 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 -DDEBIAN > -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64', > optimize='-O2 -g', > cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing > -pipe -I/usr/local/include' > ccversion='', gccversion='4.3.2', 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 =' -L/usr/local/lib' > libpth=/usr/local/lib /lib /usr/lib /usr/lib64 > libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt > perllibs=-ldl -lm -lpthread -lc -lcrypt > libc=/lib/libc-2.8.90.so, so=so, useshrplib=true, > libperl=libperl.so.5.10.0 > gnulibc_version='2.8.90' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' > cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib' > > > Characteristics of this binary (from libperl): > Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV > PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP > USE_ITHREADS > USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API > Built under linux > Compiled at Jun 26 2009 19:08:22 > @INC: > /etc/perl > /usr/local/lib/perl/5.10.0 > /usr/local/share/perl/5.10.0 > /usr/lib/perl5 > /usr/share/perl5 > /usr/lib/perl/5.10 > /usr/share/perl/5.10 > /usr/local/lib/site_perl > .
On Sun Aug 23 08:22:59 2009, SHLOMIF wrote: Show quoted text
> On Sun Aug 23 05:51:20 2009, PUBNOOP wrote:
> > After installing Test::Run, I did: > > > > cpanp -i Task::Test::Run::AllPlugins > > export HARNESS_PLUGINS="ColorSummary ColorFileVerdicts" > > runprove t/*.t > > > > I got (mostly in red): > >
> > Hi Pubnoop! > > Thanks for your report - I'm glad to know Test-Run interests some > people > enough to try it. > > In any case, it works here on my local machine (Mandriva Linux > Cooker). > I'm now trying to install it on my Debian Testing (Squeeze) VM , and > see > if I can reproduce it. > > It seems like you're trying to run it on a Debian system (or maybe an > Ubuntu one). It would help to know the exact type and configuration of > the system. > > Incidentally, I realised I need to release a new version of the task, > which will specify newer version of all the dependency modules for > easy > installation, because installing Task-Test-Run-AllPlugins did nothing. > So at least something good came out of it for me. > > Regards, > > Shlomi Fish >
OK, I now installed Task-Test-Run-AllPlugins using CPAN and local::lib on my Debian Testing VirtualBox virtual machine. runprove runs perfectly fine with your t/one.t file. So please give more information about your configuration. It is possible you still have an old version of one of the dependencies. Regards, -- Shlomi Fish
Resolving as old, due to lack of input.