Skip Menu |
 

This queue is for tickets about the Encode CPAN distribution.

Report information
The Basics
Id: 99825
Status: open
Priority: 0/
Queue: Encode

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

Bug Information
Severity: (no value)
Broken in: 2.63
Fixed in: (no value)



Subject: bad test count in t/Unicode.t
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-700-1414360723-1188.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 233
Download (untitled) / with headers
text/plain 233b
... # Looks like you planned 56 tests but ran 57. t/Unicode.t ................ Dubious, test returned 255 (wstat 65280, 0xff00) All 56 subtests passed ... this is perl 5.014004 built for darwin-2level -- cpantesters report sent.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-700-1414360723-1188.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-700-1414360723-1188.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-17736-1414596045-1161.99825-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 429
Download (untitled) / with headers
text/plain 429b
No clue except for that fact your test failed. Can't take it. Please submit more detailed log please. Dan the Maintainer Thereof On Sun Oct 26 17:58:43 2014, ETHER wrote: Show quoted text
> > > ... > # Looks like you planned 56 tests but ran 57. > t/Unicode.t ................ > Dubious, test returned 255 (wstat 65280, 0xff00) > All 56 subtests passed > ... > > this is perl 5.014004 built for darwin-2level -- cpantesters report sent.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-700-1414360723-1188.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-700-1414360723-1188.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-31491-1414605381-698.99825-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 149
Download (untitled) / with headers
text/plain 149b
the "stalled" state is more appropriate for a bug report that requires more information. That way you don't lose track of it as an outstanding issue.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-31491-1414605381-698.99825-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-700-1414360723-1188.0-0-0 [...] rt.cpan.org> <rt-4.0.18-31491-1414605381-698.99825-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-31491-1414605585-7.99825-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 326
Download (untitled) / with headers
text/plain 326b
I have been attempting to reproduce the error, and it's not always this file that fails - or any file that fails -- is it possible that multiple test files are re-using the same temporary files or directories? That will cause intermittent failures when running tests in parallel (e.g. prove -j9, or with HARNESS_OPTIONS=j9).
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-700-1414360723-1188.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-700-1414360723-1188.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-16988-1563826885-406.99825-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 1322
Download (untitled) / with headers
text/plain 1.2k
On Sun Oct 26 17:58:43 2014, ETHER wrote: Show quoted text
> > > ... > # Looks like you planned 56 tests but ran 57. > t/Unicode.t ................ > Dubious, test returned 255 (wstat 65280, 0xff00) > All 56 subtests passed > ... > > this is perl 5.014004 built for darwin-2level -- cpantesters report sent.
I also experienced this error today when running Encode's tests as part of a smoke-test of the Perl 5 core distribution test suite. Cf. http://perl5.test-smoke.org/report/91893. I believe the problem arises because on the one hand, you have hard-coded the number of tests in the file: ##### use Test::More tests => 56; ##### But on the other hand, the number of tests depends on the size of @file at line 162. ##### 158 my $dir = dirname(__FILE__); 159 opendir my $dh, $dir or die "$dir:$!"; 160 my @file = sort grep {/\.utf$/o} readdir $dh; 161 closedir $dh; 162 for my $file (@file){ 163 my $path = File::Spec->catfile($dir, $file); ... 175 is(decode("UTF-7", encode("UTF-7", $content)), $content, 176 "UTF-7 RT:$file"); 177 } ##### If there are tempfiles or if we are testing in parallel -- as I was -- this number could vary. I believe you could simply sidestep this problem by using Test::More::done_testing() at the end of the file rather than a hard-coded plan. Thank you very much. Jim Keenan


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.