]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test613: stop showing an error on missing output file
authorDan Fandrich <dan@coneharvesters.com>
Sat, 14 Oct 2023 03:24:08 +0000 (20:24 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Sat, 14 Oct 2023 03:28:58 +0000 (20:28 -0700)
This test would show an error message if the output was missing during
the log post-processing step, but the message was not captured by the
test harness and wasn't useful since the normal golden log file
comparison would the problem more clearly.

tests/libtest/test613.pl

index 3ad7805af0434c3144a010d5b7079718bdbe14b7..dee3b175431fcca7b5805cea16f4ef90d9f7803f 100755 (executable)
@@ -81,7 +81,7 @@ elsif ($ARGV[0] eq "postprocess")
 
     rmdir $dirname || die "$!";
 
-    if ($logfile) {
+    if ($logfile && -s $logfile) {
         # Process the directory file to remove all information that
         # could be inconsistent from one test run to the next (e.g.
         # file date) or may be unsupported on some platforms (e.g.