]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/httpd-corner.t: check for curl(1) errors in big async test
authorEric Wong <e@80x24.org>
Mon, 4 Nov 2019 02:27:23 +0000 (02:27 +0000)
committerEric Wong <e@80x24.org>
Mon, 4 Nov 2019 02:27:45 +0000 (02:27 +0000)
curl(1) can fail and we need to invalidate the test in the
rare case it fails.

t/httpd-corner.t

index 4077a6d1a44bdb308dbacdaef2b5c7f7c2fcbef9..fbba46236cd649409ab5b97f60e0d44187e7d768 100644 (file)
@@ -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');
 }