From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 1F7711F454 for ; Mon, 4 Nov 2019 02:27:25 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/httpd-corner.t: check for curl(1) errors in big async test Date: Mon, 4 Nov 2019 02:27:23 +0000 Message-Id: <20191104022723.90186-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: curl(1) can fail and we need to invalidate the test in the rare case it fails. --- t/httpd-corner.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/httpd-corner.t b/t/httpd-corner.t index 4077a6d1..fbba4623 100644 --- a/t/httpd-corner.t +++ b/t/httpd-corner.t @@ -272,6 +272,7 @@ SKIP: { $n += $r; $buf =~ /\A\0+\z/ or $non_zero++; } + close $fh or die "curl errored out \$?=$?"; is($n, 30 * 1024 * 1024, 'got expected output from curl'); is($non_zero, 0, 'read all zeros'); } -- EW