summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/runtests.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index a409bcc75..8725a1df5 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -2747,7 +2747,7 @@ sub cleardir {
opendir(DIR, $dir) ||
return 0; # can't open dir
while($file = readdir(DIR)) {
- if(($file !~ /^\./)) {
+ if(($file !~ /^\.(|\.)$/)) {
unlink("$dir/$file");
$count++;
}