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.