summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-03-26 15:44:59 -0600
committerKarl Williamson <khw@cpan.org>2015-03-13 10:53:11 -0600
commit983c6181cb4e024c02778ae2785bdedc92a375db (patch)
tree4b20630b5939b177493c383ca142cc8acfbad7a9 /t/TEST
parent67e8c1a43c154149e6a202cc4596586cdfcbda6b (diff)
downloadperl-983c6181cb4e024c02778ae2785bdedc92a375db.tar.gz
t/TEST: Avoid SIGPIPEs on os390
This works around a problem with z/OS where if there are unread lines from a file descriptor using this, a SIGPIPE error is raised.
Diffstat (limited to 't/TEST')
-rwxr-xr-xt/TEST3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/TEST b/t/TEST
index 9fa708c2ec..5210bc8365 100755
--- a/t/TEST
+++ b/t/TEST
@@ -665,7 +665,10 @@ EOT
}
}
}
+ my @junk = <$results>; # dump remaining output to prevent SIGPIPE
+ # (so far happens only on os390)
close $results;
+ undef @junk;
if (not defined $failure) {
$failure = 'FAILED--no leader found' unless $seen_leader;