X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fqspawn.t;h=ab3764b87baaeb9358389477106baf0d46508189;hb=e3e9ebdaaf2c2f8192fc003f1857979f933b9a8b;hp=8bc88e0e0469f439c78cb31482955ee64ace56b1;hpb=65e3cc8f6cc73e45db827cbeee4ccecbf1502496;p=public-inbox.git diff --git a/t/qspawn.t b/t/qspawn.t index 8bc88e0e..ab3764b8 100644 --- a/t/qspawn.t +++ b/t/qspawn.t @@ -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 ($) {