]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/TestCommon.pm
test_common: io_modes: always support read/write
[public-inbox.git] / lib / PublicInbox / TestCommon.pm
index fc32b57fe92fc7d93ed79f2e38ecf58f0f093738..af1b2e4f63ef0d964bdb9d268eae3422cbb6931f 100644 (file)
@@ -155,8 +155,8 @@ sub key2script ($) {
        'blib/script/'.$key;
 }
 
-my @io_mode = ([ *STDIN{IO}, '<&' ], [ *STDOUT{IO}, '>&' ],
-               [ *STDERR{IO}, '>&' ]);
+my @io_mode = ([ *STDIN{IO}, '+<&' ], [ *STDOUT{IO}, '+>&' ],
+               [ *STDERR{IO}, '+>&' ]);
 
 sub _prepare_redirects ($) {
        my ($fhref) = @_;