X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fqspawn.t;h=4b9dc8a535debf7a10b4a8f79b95f4e20313c871;hb=0c385e6500f26babc47a0768b730ea38e290a5f5;hp=8bc88e0e0469f439c78cb31482955ee64ace56b1;hpb=65e3cc8f6cc73e45db827cbeee4ccecbf1502496;p=public-inbox.git
diff --git a/t/qspawn.t b/t/qspawn.t
index 8bc88e0e..4b9dc8a5 100644
--- a/t/qspawn.t
+++ b/t/qspawn.t
@@ -1,4 +1,4 @@
-# Copyright (C) 2016-2019 all contributors
+# Copyright (C) 2016-2021 all contributors
# License: AGPL-3.0+
use strict;
use Test::More;
@@ -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 ($) {