tests: Eliminate IO::Scalar

This commit is contained in:
Michael Stapelberg 2011-10-05 23:17:09 +01:00
parent b9cd9132d0
commit 689f3b8cf7
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,6 @@ use EV;
use AnyEvent;
use AnyEvent::Handle;
use AnyEvent::I3 qw(:all);
use IO::Scalar; # not in core :\
use Try::Tiny; # not in core
use X11::XCB;
@ -187,9 +186,10 @@ sub take_job {
say "[$display] Running $test with logfile $logpath";
my $output;
open(my $spool, '>', \$output);
my $parser = TAP::Parser->new({
exec => [ 'sh', '-c', qq|DISPLAY=$display LOGPATH="$logpath" /usr/bin/perl -Ilib $test| ],
spool => IO::Scalar->new(\$output),
spool => $spool,
merge => 1,
});