From: Michael Stapelberg Date: Mon, 18 Feb 2013 23:26:00 +0000 (+0100) Subject: tests: correctly close stdout with IPC::Run X-Git-Tag: 4.5~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2922603cc4e2c5b36b6afea5127bcef9b11ab759;p=i3%2Fi3 tests: correctly close stdout with IPC::Run while IPC::Run supports <&-, it does not support >&- apparently. --- diff --git a/testcases/t/201-config-parser.t b/testcases/t/201-config-parser.t index e36c13f3..182d7754 100644 --- a/testcases/t/201-config-parser.t +++ b/testcases/t/201-config-parser.t @@ -26,7 +26,7 @@ sub parser_calls { my $stdout; run [ '../test.config_parser', $command ], - '>&-', + '>/dev/null', '2>', \$stdout; # TODO: use a timeout, so that we can error out if it doesn’t terminate