diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index 42a6781358..6e342804f9 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -782,7 +782,11 @@ verbose () { # otherwise. test_must_be_empty () { - if test -s "$1" + if ! test -f "$1" + then + echo "'$1' is missing" + return 1 + elif test -s "$1" then echo "'$1' is not empty, it contains:" cat "$1"