From d71ac6711a4616a851d048cfa82102d1d9e25bdd Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 21 Aug 2020 16:35:50 +0200 Subject: [PATCH] runtests: make cleardir() erase dot files too Because test cases might use dot files. Closes #5838 --- tests/runtests.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; }