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