Bug 1113962

Summary: perl-Test-TCP-2.02-2.fc21 FTBFS on loaded machine: time race in tests
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-Test-TCPAssignee: Petr Pisar <ppisar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mmaslano, perl-devel, psabata, rc040203
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/tokuhirom/Test-TCP/issues/28
Whiteboard:
Fixed In Version: perl-Test-TCP-2.02-3.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-27 12:05:57 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-06-27 11:05:01 UTC
perl-Test-TCP-2.02-2.fc21 can fail to build due to tests on slow machine like this:

cannot open port: 50452 at /builddir/build/BUILD/Test-TCP-2.02/blib/lib/Test/TCP.pm line 51.
Magic number checking on storable file failed at /usr/lib64/perl5/vendor_perl/Storable.pm line 399, at /usr/share/perl5/vendor_perl/Test/SharedFork/Store.pm line 51.
END failed--call queue aborted at t/12_pass_wait_port_options.t line 51.
t/12_pass_wait_port_options.t .. 
Dubious, test returned 255 (wstat 65280, 0xff00)
All 24 subtests passed

This caused by various time limits in t/12_pass_wait_port_options.t. If server process does not start listening on a TCP socket in time, the test will fail.

This can be reproduced by adding "sleep 10;" just above t::Server->new() call.

Comment 1 Petr Pisar 2014-06-27 11:59:19 UTC
I will apply the patch I proposed to the upstream without the documentation change not to encourage Fedora users to use the new feature.