Bug 1158379

Summary: perl-Crypt-Random-1.25-20.fc22 FTBFS: t/generator.t test fails sometimes
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-Crypt-RandomAssignee: Paul Howarth <paul>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: paul, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: perl-Crypt-Random-1.25-21.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-10 06:29:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2014-10-29 09:24:55 UTC
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.

Comment 1 Fedora Update System 2014-10-29 11:56:40 UTC
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

Comment 2 Paul Howarth 2014-10-29 11:59:46 UTC
I patched the test to make it a TODO test for now.

Comment 3 Fedora Update System 2014-10-31 01:28:07 UTC
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-1.25-21.fc21
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-11-10 06:29:15 UTC
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.