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
... # 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.
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.
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.
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).
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