Bug 1314777

Summary: perl-IO-Pty-Easy-0.09-5.fc25 FTBFS: t/read-write.t test fails randomly
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-IO-Pty-EasyAssignee: Petr Pisar <ppisar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ddick, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: perl-IO-Pty-Easy-0.09-6.fc25 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-15 11:14:22 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 2016-03-04 13:07:53 UTC
perl-IO-Pty-Easy-0.09-5.fc25 fails to build in F25 sometimes because a test can fail:

%check phase:
#   Failed test 'write returns undef on timeout'
#   at t/read-write.t line 18.
#          got: '11'
#     expected: undef
# Looks like you failed 1 test of 5.
t/read-write.t ............ 
Dubious, test returned 1 (wstat 256, 0x100)
Failed

Reproducer is:

$ while (perl -Ilib t/read-write.t); do :;done

It looks like there is a race in the test.

Comment 1 Petr Pisar 2016-03-14 16:57:14 UTC
I applied a fix I proposed to the upstream. But it fails in koji. It actually fails if tests' stdin is not a TTY. This looks like genuine bug in the module.

Comment 2 Petr Pisar 2016-03-15 11:14:22 UTC
It loks like a bug in the module documentation. I adapted the test.