Skip Menu |
 

This queue is for tickets about the Term-ANSIColor CPAN distribution.

Report information
The Basics
Id: 82344
Status: resolved
Priority: 0/
Queue: Term-ANSIColor

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

Bug Information
Severity: Critical
Broken in: 4.00
Fixed in: 4.01



Subject: FTBFS with test error.
Download (untitled) / with headers
text/plain 2.6k
cpanm (App::cpanminus) 1.5019 on perl 5.016002 built for x86_64-linux Work directory is /home/bluet/.cpanm/work/1356918257.25863 You have make /usr/bin/make You have LWP 6.04 You have /bin/tar: tar (GNU tar) 1.26 Copyright © 2011 Free Software Foundation, Inc. 使用授權 GPLv3+: GNU GPL 第三版或後續版本<http://gnu.org/licenses /gpl.html>。 這是自由軟體:您可以自由變更和再次散布它。 在法律所允許的範圍內沒有任何擔保。 由 John Gilmore 和 Jay Fenlason 編寫。 Searching Term::ANSIColor on cpanmetadb ... --> Working on Term::ANSIColor Fetching http://www.cpan.org/authors/id/R/RR/RRA/Term-ANSIColor-4.00.tar.gz -> OK Unpacking Term-ANSIColor-4.00.tar.gz Entering Term-ANSIColor-4.00 Checking configure dependencies from META.yml Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.64) Configuring Term-ANSIColor-4.00 Running Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Term::ANSIColor Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.64) Building and testing Term-ANSIColor-4.00 cp ANSIColor.pm blib/lib/Term/ANSIColor.pm Manifying blib/man3/Term::ANSIColor.3 PERL_DL_NONLAZY=1 /home/bluet/perl5/perlbrew/perls/perl-5.16.2/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t You tried to plan twice at t/aliases-env.t line 17. # Looks like your test exited with 2 before it could output anything. t/aliases-env.t ...... Dubious, test returned 2 (wstat 512, 0x200) Failed 19/19 subtests t/aliases-func.t ..... ok t/basic.t ............ ok t/basic256.t ......... ok t/critic.t ........... skipped: Coding style tests only run for maintainer t/eval.t ............. ok t/minimum-version.t .. skipped: Test::MinimumVersion required to test version limits t/pod-coverage.t ..... skipped: Test::Pod::Coverage required to test POD coverage t/pod-spelling.t ..... skipped: Spelling tests only run for maintainer t/pod.t .............. skipped: Test::Pod required to test POD syntax t/strict.t ........... skipped: Test::Strict required to test Perl syntax t/stringify.t ........ ok t/synopsis.t ......... skipped: Test::Synopsis required to test SYNOPSIS syntax t/taint.t ............ ok Test Summary Report ------------------- t/aliases-env.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 19 tests but ran 0. Files=14, Tests=282, 0 wallclock secs ( 0.07 usr 0.02 sys + 0.23 cusr 0.03 csys = 0.35 CPU) Result: FAIL Failed 1/14 test programs. 0/282 subtests failed. make: *** [test_dynamic] Error 255
Subject: Re: [rt.cpan.org #82344] FTBFS with test error.
Date: Sun, 30 Dec 2012 17:57:24 -0800
To: bug-Term-ANSIColor [...] rt.cpan.org
From: Russ Allbery <rra [...] stanford.edu>
Download (untitled) / with headers
text/plain 978b
"BlueT - Matthew Lien - 練喆明 via RT" <bug-Term-ANSIColor@rt.cpan.org> writes: Show quoted text
> You tried to plan twice at t/aliases-env.t line 17. > # Looks like your test exited with 2 before it could output anything.
Sorry about that. A bug in the code to handle not having one of the optional testing modules. The following patch should fix it. I'll release 4.01 tomorrow. diff --git a/t/aliases-env.t b/t/aliases-env.t index 5dbfd32..24c3722 100755 --- a/t/aliases-env.t +++ b/t/aliases-env.t @@ -11,7 +11,7 @@ use strict; use warnings; -use Test::More tests => 19; +use Test::More; # Skip tests if Test::Warn is not installed. if (!eval { require Test::Warn }) { @@ -19,6 +19,9 @@ if (!eval { require Test::Warn }) { } Test::Warn->import; +# Print out our plan. +plan tests => 19; + # Ensure we don't pick up a setting from the user's environment. delete $ENV{ANSI_COLORS_DISABLED}; -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Subject: Re: [rt.cpan.org #82344] FTBFS with test error.
Date: Mon, 31 Dec 2012 10:09:56 +0800
To: bug-Term-ANSIColor [...] rt.cpan.org
From: "BlueT - Matthew Lien - 練喆明" <bluet [...] bluet.org>
Download (untitled) / with headers
text/plain 1.5k
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks for the quick response! Will test the new version tomorrow. :-) Best wishes, BlueT On 2012年12月31日 09:57, rra@stanford.edu via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=82344 > > > "BlueT - Matthew Lien - 練喆明 via RT" <bug-Term-ANSIColor@rt.cpan.org> > writes: >
>> You tried to plan twice at t/aliases-env.t line 17. >> # Looks like your test exited with 2 before it could output anything.
> > Sorry about that. A bug in the code to handle not having one of the > optional testing modules. The following patch should fix it. I'll > release 4.01 tomorrow. > > diff --git a/t/aliases-env.t b/t/aliases-env.t > index 5dbfd32..24c3722 100755 > --- a/t/aliases-env.t > +++ b/t/aliases-env.t > @@ -11,7 +11,7 @@ > use strict; > use warnings; > > -use Test::More tests => 19; > +use Test::More; > > # Skip tests if Test::Warn is not installed. > if (!eval { require Test::Warn }) { > @@ -19,6 +19,9 @@ if (!eval { require Test::Warn }) { > } > Test::Warn->import; > > +# Print out our plan. > +plan tests => 19; > + > # Ensure we don't pick up a setting from the user's environment. > delete $ENV{ANSI_COLORS_DISABLED}; >
- -- / Just another [ Perl | FOSS | Security ] Hacker. / / BlueT = Matthew Lien = 練喆明 / / http://BlueT.org / / GPG: 4A293CBD / -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlDg8/MACgkQvRNvgEopPL1seQCfRpdWGOhhUMpUKX2WKh1/T/pB LYYAn1nQ+d1whSswW75XPo7k9QsrJzNb =wa1S -----END PGP SIGNATURE-----
Download (untitled) / with headers
text/plain 607b
On Sun Dec 30 20:57:41 2012, rra@stanford.edu wrote: Show quoted text
> > You tried to plan twice at t/aliases-env.t line 17. > > # Looks like your test exited with 2 before it could output anything.
> > Sorry about that. A bug in the code to handle not having one of the > optional testing modules. The following patch should fix it. I'll > release 4.01 tomorrow.
I just wanted to report the same bug, and I came up with basically the same patch, so I can confirm it works :) To add something marginally useful: The example script has a typo in the comment at the beginning: s/foregrond/foreground/ Cheers, gregor
Subject: Re: [rt.cpan.org #82344] FTBFS with test error.
Date: Sun, 30 Dec 2012 19:49:44 -0800
To: bug-Term-ANSIColor [...] rt.cpan.org
From: Russ Allbery <rra [...] stanford.edu>
Download (untitled) / with headers
text/plain 463b
"gregor herrmann via RT" <bug-Term-ANSIColor@rt.cpan.org> writes: Show quoted text
> I just wanted to report the same bug, and I came up with basically the > same patch, so I can confirm it works :)
Thanks. :) Show quoted text
> To add something marginally useful: The example script has a typo in the > comment at the beginning: > s/foregrond/foreground/
Also fixed and will be in the next release. Thank you! -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Download (untitled) / with headers
text/plain 123b
Fixed in Term::ANSIColor 4.01, just now uploaded. It should be available from CPAN shortly. Thank you for the bug report!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.