Skip Menu |

This queue is for tickets about the podlators CPAN distribution.

Report information
The Basics
Id: 36438
Status: resolved
Priority: 0/
Queue: podlators

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

Bug Information
Severity: Important
Broken in: 2.1.0
Fixed in: 2.1.1



Subject: [PATCH] Fix test failure in t/text.t
The attached patch corrects the following failure in t/text.t: /usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/basic...........ok t/color...........ok t/filehandle......ok t/man-options.....ok t/man.............ok t/parselink.......ok t/pod-parser......ok t/pod.............ok 1/1 skipped: various reasons t/termcap.........ok t/text-options....ok t/text............FAILED test 4 Failed 1/4 tests, 75.00% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/text.t 4 1 4 1 subtest skipped. Failed 1/11 test scripts. 1/82 subtests failed. Files=11, Tests=82, 3 wallclock secs ( 2.13 cusr + 0.85 csys = 2.98 CPU) Failed 1/11 test programs. 1/82 subtests failed. Show quoted text
> perl -Mblib t/text.t
1..4 ok 1 ok 2 ok 3 not ok 4 Expected ======== Test of S<> This is some whitespace. Output ====== Test of S<> This is some whitespace. The cause of the failure is a difference in the number of newlines in the two values. This is with Perl 5.8.x under Cygwin on Windows.
Subject: patch.txt
--- podlators-2.1.0/t/text.t +++ podlators-2.1.0/t/text.t @@ -61,7 +61,7 @@ print "ok $n # skip Pod::Simple S<> parsing bug\n"; } else { print "not ok $n\n"; - print "Expected\n========\n$expected\nOutput\n======\n$output\n"; + print "Expected\n========\n'$expected'\nOutput\n======\n'$output'\n"; } $n++; } @@ -99,5 +99,6 @@ ### Test of S<> This is some whitespace. + ### ==
Subject: Re: [rt.cpan.org #36438] [PATCH] Fix test failure in t/text.t
Date: Wed, 04 Jun 2008 09:48:58 -0700
To: bug-podlators [...] rt.cpan.org
From: Russ Allbery <rra [...] stanford.edu>
"Jerry D. Hedden via RT" <bug-podlators@rt.cpan.org> writes: Show quoted text
> The attached patch corrects the following failure in t/text.t:
Thanks! I just noticed this myself; Pod::Simple fixed the bug that caused that test case to be skipped exposing a bug in the test case. As soon as I get some clarifications about some other test cases that seem to be failing, I'll make a new release with this fix. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Fixed in 2.1.1.