]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/qspawn.t
init: use Import::run_die instead of system()
[public-inbox.git] / t / qspawn.t
index 8bc88e0e0469f439c78cb31482955ee64ace56b1..ab3764b87baaeb9358389477106baf0d46508189 100644 (file)
@@ -10,6 +10,11 @@ use_ok 'PublicInbox::Qspawn';
        my $res;
        $qsp->psgi_qx({}, undef, sub { $res = ${$_[0]} });
        is($res, "err\nout\n", 'captured stderr and stdout');
+
+       $res = undef;
+       $qsp = PublicInbox::Qspawn->new($cmd, {}, { 2 => \*STDOUT });
+       $qsp->psgi_qx({}, undef, sub { $res = ${$_[0]} });
+       is($res, "err\nout\n", 'captured stderr and stdout');
 }
 
 sub finish_err ($) {