]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Use test_failed_internal in inode_cache suite
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 19 Jul 2021 18:13:01 +0000 (20:13 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 20 Jul 2021 17:43:01 +0000 (19:43 +0200)
Using test_failed_internal makes line numbers in reported failures
correct.

test/suites/inode_cache.bash

index ef9c92490dac28897015373de87aa5157bd0565d..dcc5fc714af7ee45ba199876fdbf6c9e61ca9672 100644 (file)
@@ -29,7 +29,7 @@ expect_inode_cache_type() {
     local log_file=$(echo $source_file | sed 's/\.c$/.o.ccache-log/')
     local actual=$(grep -c "inode cache $type: $source_file" "$log_file")
     if [ $actual -ne $expected ]; then
-        test_failed "Found $actual (expected $expected) $type for $source_file"
+        test_failed_internal "Found $actual (expected $expected) $type for $source_file"
     fi
 }