]> git.sur5r.net Git - i3/i3/commitdiff
tests: correctly close stdout with IPC::Run
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 18 Feb 2013 23:26:00 +0000 (00:26 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 18 Feb 2013 23:26:00 +0000 (00:26 +0100)
while IPC::Run supports <&-, it does not support >&- apparently.

testcases/t/201-config-parser.t

index e36c13f3a722862106cdbf06ea004c1c1b5f73f1..182d7754bc7f3d805f4a342a5238679089e98595 100644 (file)
@@ -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