Skip Menu |
 

This queue is for tickets about the HTML-Tree CPAN distribution.

Report information
The Basics
Id: 77823
Status: resolved
Priority: 0/
Queue: HTML-Tree

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

Bug Information
Severity: Critical
Broken in: 5.00
Fixed in: 5.01



Subject: Broken test 'opening_missing_file'
Download (untitled) / with headers
text/plain 439b
On Linux with german locale settings: t/construct_tree.t .. 1/75 # Failed test 'opening missing file failed' # at t/construct_tree.t line 143. # 'unable to parse file: Datei oder Verzeichnis nicht gefunden at t/construct_tree.t line 142. # ' # doesn't match '(?-xism:^unable to parse file: No such file )' # Looks like you failed 1 test of 75. t/construct_tree.t .. Dubious, test returned 1 (wstat 256, 0x100)
Download (untitled) / with headers
text/plain 679b
Le Jeu 14 Juin 2012 10:12:19, GENSYM a écrit : Show quoted text
> On Linux with german locale settings: > > t/construct_tree.t .. 1/75 > # Failed test 'opening missing file failed' > # at t/construct_tree.t line 143. > # 'unable to parse file: Datei oder Verzeichnis nicht > gefunden at t/construct_tree.t line 142. > # ' > # doesn't match '(?-xism:^unable to parse file: No such file )' > # Looks like you failed 1 test of 75. > t/construct_tree.t .. Dubious, test returned 1 (wstat 256, 0x100)
There is the same bug when using French, or in fact any non-English locale (tested with Spanish). I'm afraid testing positively the returned text isn't a usable test.
Download (untitled) / with headers
text/plain 383b
I've been trying to find a solution for this short of just not checking the $! part of the error message at all. But there doesn't seem to be anything on CPAN for this problem, or at least I can't find it. I can't believe this is the first time this issue has come up. Does anybody know how other people solved it? I've also asked this on http://stackoverflow.com/q/11066533/8355
I've changed the test to force the C locale. HTML-Tree 5.01 is now on CPAN.


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.