]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/qspawn.t
www: drop --subject from "git send-email" instructions
[public-inbox.git] / t / qspawn.t
index 8bc88e0e0469f439c78cb31482955ee64ace56b1..4b9dc8a535debf7a10b4a8f79b95f4e20313c871 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2016-2019 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 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 ($) {