summaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-08-21 16:35:50 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-08-23 17:45:41 +0200
commitd71ac6711a4616a851d048cfa82102d1d9e25bdd (patch)
treea9154f61a22c87fa641dabae7f7ef9ce6c11c9b3 /tests/runtests.pl
parent712d16cbe05ee5890c05d93773f08bbe134b3f1d (diff)
downloadcurl-d71ac6711a4616a851d048cfa82102d1d9e25bdd.tar.gz
runtests: make cleardir() erase dot files too
Because test cases might use dot files. Closes #5838
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 1c40d31b0..b0bddba1c 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -2716,7 +2716,7 @@ sub cleardir {
opendir(DIR, $dir) ||
return 0; # can't open dir
while($file = readdir(DIR)) {
- if(($file !~ /^\./)) {
+ if(($file !~ /^\.(|\.)$/)) {
unlink("$dir/$file");
$count++;
}