tests: correctly close stdout with IPC::Run
while IPC::Run supports <&-, it does not support >&- apparently.
This commit is contained in:
@ -26,7 +26,7 @@ sub parser_calls {
|
|||||||
|
|
||||||
my $stdout;
|
my $stdout;
|
||||||
run [ '../test.config_parser', $command ],
|
run [ '../test.config_parser', $command ],
|
||||||
'>&-',
|
'>/dev/null',
|
||||||
'2>', \$stdout;
|
'2>', \$stdout;
|
||||||
# TODO: use a timeout, so that we can error out if it doesn’t terminate
|
# TODO: use a timeout, so that we can error out if it doesn’t terminate
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user