From b5318c127af37e330e4ba059817425a596a27647 Mon Sep 17 00:00:00 2001
From: Eric Wong <e@80x24.org>
Date: Mon, 4 Nov 2019 02:27:23 +0000
Subject: [PATCH] t/httpd-corner.t: check for curl(1) errors in big async test
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');
}
--
2.51.0