]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix(test): Pass all three required arguments to expect_file_count (#925)
authorGregor Jasny <gregor.jasny@logmein.com>
Sun, 29 Aug 2021 17:50:22 +0000 (19:50 +0200)
committerGitHub <noreply@github.com>
Sun, 29 Aug 2021 17:50:22 +0000 (19:50 +0200)
test/run
test/suites/secondary_file.bash

index f98c3a79b963457779072c039f20ff3903980f39..b9abc094803346b89718635119f65d0bd82ed761 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -317,7 +317,7 @@ expect_file_count() {
     local expected=$1
     local pattern=$2
     local dir=$3
-    local actual=`find $dir -type f -name "$pattern" | wc -l`
+    local actual=`find "$dir" -type f -name "$pattern" | wc -l`
     if [ $actual -ne $expected ]; then
         test_failed_internal "Found $actual (expected $expected) $pattern files in $dir"
     fi
index 5fc518374599a178eadad0f379bc39552eca4352..94ff43db28747c116e28038d9042ef20324ece22 100644 (file)
@@ -245,5 +245,5 @@ SUITE_secondary_file() {
     expect_stat primary_storage_miss 4
     expect_stat secondary_storage_hit 2
     expect_stat secondary_storage_miss 2
-    expect_file_count 0
+    expect_file_count 3 '*' secondary # CACHEDIR.TAG + result + manifest
 }