about summary refs log tree commit homepage
path: root/t/httpd-corner.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-11-04 02:27:23 +0000
committerEric Wong <e@80x24.org>2019-11-04 02:27:45 +0000
commitb5318c127af37e330e4ba059817425a596a27647 (patch)
treeeafa26d756efc003d6f6697a11597dd11f0c78db /t/httpd-corner.t
parentb32b47fb12a3043d748f723802de923d9043d7ff (diff)
downloadpublic-inbox-b5318c127af37e330e4ba059817425a596a27647.tar.gz
curl(1) can fail and we need to invalidate the test in the
rare case it fails.
Diffstat (limited to 't/httpd-corner.t')
-rw-r--r--t/httpd-corner.t1
1 files changed, 1 insertions, 0 deletions
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');
 }