https://bugzilla.redhat.com/show_bug.cgi?id=1158379
Bug ID: 1158379 Summary: perl-Crypt-Random-1.25-20.fc22 FTBFS: t/generator.t test fails sometimes Product: Fedora Version: rawhide Component: perl-Crypt-Random Assignee: paul@city-fan.org Reporter: ppisar@redhat.com QA Contact: extras-qa@fedoraproject.org CC: paul@city-fan.org, perl-devel@lists.fedoraproject.org
perl-Crypt-Random-1.25-20.fc22 fails to build in F22 because a test fails sometimes:
+ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # Test 9 got: "0" (t/generator.t at line 26 fail #2) # Expected: "1" # t/generator.t line 26 is: ok($x != $y, 1); t/generator.t ........ Failed 1/18 subtests
The test actually compares two random numbers and fails if the numbers are equalled. It's natural that you can sometimes get two same numbers from a random number generator. The test is faulty by design.
https://bugzilla.redhat.com/show_bug.cgi?id=1158379
--- Comment #1 from Fedora Update System updates@fedoraproject.org --- perl-Crypt-Random-1.25-21.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/perl-Crypt-Random-1.25-21.fc21
https://bugzilla.redhat.com/show_bug.cgi?id=1158379
Paul Howarth paul@city-fan.org changed:
What |Removed |Added ---------------------------------------------------------------------------- External Bug ID| |CPAN 99880
https://bugzilla.redhat.com/show_bug.cgi?id=1158379
--- Comment #2 from Paul Howarth paul@city-fan.org --- I patched the test to make it a TODO test for now.
https://bugzilla.redhat.com/show_bug.cgi?id=1158379
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #3 from Fedora Update System updates@fedoraproject.org --- Package perl-Crypt-Random-1.25-21.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing perl-Crypt-Random-1.25-21.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-13994/perl-Crypt-Random-... then log in and leave karma (feedback).
https://bugzilla.redhat.com/show_bug.cgi?id=1158379
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |perl-Crypt-Random-1.25-21.f | |c21 Resolution|--- |ERRATA Last Closed| |2014-11-10 01:29:15
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- perl-Crypt-Random-1.25-21.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
perl-devel@lists.fedoraproject.org