diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2020-08-21 16:35:50 +0200 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2020-08-21 16:35:50 +0200 |
| commit | effe3882f8db6a0f9652d67ff7d99226b6ac041c (patch) | |
| tree | 3f239720d73f3caec4c0afc43db0c7621da8398b | |
| parent | 6b60767bd8d77ca8e462e4bedaee8495ff4bb6b8 (diff) | |
| download | curl-bagder/runtests-rm-dotfiles.tar.gz | |
runtests: make cleardir() erase dot filesbagder/runtests-rm-dotfiles
Because test cases might use dot files.
| -rwxr-xr-x | tests/runtests.pl | 2 |
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++; } |
