about summary refs log tree commit homepage
path: root/t/qspawn.t
diff options
context:
space:
mode:
Diffstat (limited to 't/qspawn.t')
-rw-r--r--t/qspawn.t5
1 files changed, 5 insertions, 0 deletions
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 ($) {