Skip Menu |

This queue is for tickets about the Simple-Accessor CPAN distribution.

Report information
The Basics
Id: 109396
Status: resolved
Priority: 0/
Queue: Simple-Accessor

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

Bug Information
Severity: (no value)
Broken in:
  • 0.10
  • 1.00
Fixed in: (no value)



Subject: Random test failures
t/01-basic.t fails randomly, for all perl versions (so it's not a hash randomization issue, it seems). See http://matrix.cpantesters.org/?dist=Simple-Accessor%200.10 for a fail/pass reports overview.
On 2015-11-22 08:55:18, SREZIC wrote: Show quoted text
> t/01-basic.t fails randomly, for all perl versions (so it's not a hash > randomization issue, it seems). See > http://matrix.cpantesters.org/?dist=Simple-Accessor%200.10 for a > fail/pass reports overview.
I think the problem is here: my $v = int rand(42); ok $o->$att($v), "set $att"; $v may be 0 in the int rand call in 1/42 of all runs (and the loop here has four iterations, so that's almost 10%). And the subsequent call probably fails if it is zero.
thanks for the report test fixed with version 1.01