Skip Menu |

This queue is for tickets about the Error-Pure-JSON CPAN distribution.

Report information
The Basics
Id: 102114
Status: resolved
Priority: 0/
Queue: Error-Pure-JSON

People
Owner: SKIM [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: Possible hash randomization problems in test suite (0.05)
With perl 5.18 and later the test suite may fail with the following error: # Failed test 'Error in standalone script - stderr.' # at t/Error-Pure-JSON-Advance/04-err.t line 50. # '{"error-pure":[{"stack":[{"class":"main","line":11,"args":"('Error.')","prog":"/usr/home/eserte/.cpan/build/Error-Pure-JSON-0.05-x4zeb5/t/data/ex3.pl","sub":"err"}],"msg":["Error."]}]} # ' # doesn't match '(?^:{"error-pure":\[{"msg":\["Error."\],"stack":\[{"sub":"err","prog":".*?t/data/ex3.pl","args":"\('Error.'\)","class":"main","line":11}\]}\]})' This does not happen for perl <= 5.16, so it's probably caused by the new hash randomization code introduced in perl 5.18.
On 2015-02-13 17:17:48, SREZIC wrote: Show quoted text
> With perl 5.18 and later the test suite may fail with the following > error: > > # Failed test 'Error in standalone script - stderr.' > # at t/Error-Pure-JSON-Advance/04-err.t line 50. > # '{"error- > pure":[{"stack":[{"class":"main","line":11,"args":"('Error.')","prog":"/usr/home/eserte/.cpan/build/Error- > Pure-JSON-0.05-x4zeb5/t/data/ex3.pl","sub":"err"}],"msg":["Error."]}]} > # ' > # doesn't match '(?^:{"error- > pure":\[{"msg":\["Error."\],"stack":\[{"sub":"err","prog":".*?t/data/ex3.pl","args":"\('Error.'\)","class":"main","line":11}\]}\]})' > > This does not happen for perl <= 5.16, so it's probably caused by the > new hash randomization code introduced in perl 5.18.
Link to cpantesters results: http://matrix.cpantesters.org/?dist=Error-Pure-JSON+0.05 Actually there are no passes at all for >= 5.18, so it's not the typical pattern for a hash randomization problem...
Dne So 14.Ășno.2015 04:01:25, SREZIC napsal(a): Show quoted text
> On 2015-02-13 17:17:48, SREZIC wrote:
> > With perl 5.18 and later the test suite may fail with the following > > error: > > > > # Failed test 'Error in standalone script - stderr.' > > # at t/Error-Pure-JSON-Advance/04-err.t line 50. > > # '{"error- > > pure":[{"stack":[{"class":"main","line":11,"args":"('Error.')","prog":"/usr/home/eserte/.cpan/build/Error- > > Pure-JSON-0.05- > > x4zeb5/t/data/ex3.pl","sub":"err"}],"msg":["Error."]}]} > > # ' > > # doesn't match '(?^:{"error- > > pure":\[{"msg":\["Error."\],"stack":\[{"sub":"err","prog":".*?t/data/ex3.pl","args":"\('Error.'\)","class":"main","line":11}\]}\]})' > > > > This does not happen for perl <= 5.16, so it's probably caused by the > > new hash randomization code introduced in perl 5.18.
> > Link to cpantesters results: > http://matrix.cpantesters.org/?dist=Error-Pure-JSON+0.05 > > Actually there are no passes at all for >= 5.18, so it's not the > typical pattern for a hash randomization problem...
Yes, i was waiting to cpantesters results. I rewrote it to comparison of decoded JSON in Perl. Thanks, M.