]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Improve error messages from expect_{equal,different}_files
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 12 Mar 2018 20:20:17 +0000 (21:20 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 12 Mar 2018 20:20:17 +0000 (21:20 +0100)
test/run

index f33237bbbf3b9180ddaea1fdc660abfa8559c793..1baf3646d25cc2c4b6b6eb48a4645ed45de55979 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -112,25 +112,25 @@ expect_stat() {
 
 expect_equal_files() {
     if [ ! -e "$1" ]; then
-        test_failed "compare_files: $1 missing"
+        test_failed "expect_equal_files: $1 missing"
     fi
     if [ ! -e "$2" ]; then
-        test_failed "compare_files: $2 missing"
+        test_failed "expect_equal_files: $2 missing"
     fi
     if ! cmp -s "$1" "$2"; then
-        test_failed "compare_files: $1 and $2 differ"
+        test_failed "$1 and $2 differ"
     fi
 }
 
 expect_different_files() {
     if [ ! -e "$1" ]; then
-        test_failed "compare_files: $1 missing"
+        test_failed "expect_different_files: $1 missing"
     fi
     if [ ! -e "$2" ]; then
-        test_failed "compare_files: $2 missing"
+        test_failed "expect_different_files: $2 missing"
     fi
     if cmp -s "$1" "$2"; then
-        test_failed "compare_files: $1 and $2 are identical"
+        test_failed "$1 and $2 are identical"
     fi
 }