]> Sergey Matveev's repositories - public-inbox.git/commit
testcommon: fix run_script for older Perls
authorEric Wong <e@80x24.org>
Thu, 19 Dec 2019 08:38:51 +0000 (08:38 +0000)
committerEric Wong <e@80x24.org>
Fri, 20 Dec 2019 02:40:09 +0000 (02:40 +0000)
commit8d29cf132caf3de81986179b10746f31123c96b9
treec25c199495a045e097fb88508d7c391fb29c332b
parent7321c78ebdcaa7ce5f0f8383e07429827da0b718
testcommon: fix run_script for older Perls

Using Perl "open" to dup(2) and save the old handles is required
since "local *STDIN = *STDIN" does not work on old Perls.  Even
worse, this was silently a no-op when tested with Perl 5.24.1 on
Debian 9.x and led to confusing failures in the t/httpd-corner.t
lsof(1) tests when run after t/v2mirror.t from the same worker
process using t/run.perl.
lib/PublicInbox/TestCommon.pm