]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/import.t
spawn: allow passing GLOB handles for redirects
[public-inbox.git] / t / import.t
index 3cf7e2d2e4ea4e1e6168c7caae797ba945645785..cfbe501b102bca5061856ac52609529ed650c37e 100644 (file)
@@ -44,7 +44,7 @@ if ($v2) {
        $in->flush or die "flush failed: $!";
        $in->seek(0, SEEK_SET);
        my $out = tempfile();
-       my $pid = spawn(\@cmd, {}, { 0 => fileno($in), 1 => fileno($out)});
+       my $pid = spawn(\@cmd, {}, { 0 => $in, 1 => $out });
        is(waitpid($pid, 0), $pid, 'waitpid succeeds on hash-object');
        is($?, 0, 'hash-object');
        $out->seek(0, SEEK_SET);