From: Daniel Stenberg Date: Fri, 16 Apr 2004 07:02:17 +0000 (+0000) Subject: don't display the . and .. files when dumping the log/ contents X-Git-Tag: curl-7_11_2~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4661cc7403ef0793cef29a1762fca19f114f0744;p=thirdparty%2Fcurl.git don't display the . and .. files when dumping the log/ contents --- diff --git a/tests/runtests.pl b/tests/runtests.pl index 6e8d5368e9..a2af5c9445 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -1548,8 +1548,8 @@ sub displaylogs { print "== Contents of files in the log/ dir after test $testnum\n"; foreach $log (sort @logs) { - # the log file contains more than zero bytes - if(-s "$LOGDIR/$log") { + # the log file is not "." or ".." and contains more than zero bytes + if(($log !~ /\.(\.|)$/) && -s "$LOGDIR/$log") { print "== Start of file $log\n"; displaylogcontent("$LOGDIR/$log"); print "== End of file $log\n";