From: Joel Rosdahl Date: Mon, 12 Mar 2018 20:20:17 +0000 (+0100) Subject: test: Improve error messages from expect_{equal,different}_files X-Git-Tag: v3.4.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da229e04fb175c568ed245f6874fe58a38d39fa7;p=thirdparty%2Fccache.git test: Improve error messages from expect_{equal,different}_files --- diff --git a/test/run b/test/run index f33237bbb..1baf3646d 100755 --- 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 }