From 98e514e5f474cb2da3aa691a4b96ff8a0ac401bc Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Mon, 22 Aug 2022 15:18:58 -0700 Subject: [PATCH] Add failure message to xattr length test The simple-xattr-unit test had a helper that failed by exiting with non-zero instead of emitting a message. Let's make it a bit easier to see what's going on. Signed-off-by: Zach Brown --- tests/tests/simple-xattr-unit.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/tests/simple-xattr-unit.sh b/tests/tests/simple-xattr-unit.sh index beaba237..31cc5878 100644 --- a/tests/tests/simple-xattr-unit.sh +++ b/tests/tests/simple-xattr-unit.sh @@ -36,7 +36,8 @@ test_xattr_lengths() { else echo "$name=\"$val\"" > "$T_TMP.good" fi - cmp "$T_TMP.good" "$T_TMP.got" || exit 1 + cmp "$T_TMP.good" "$T_TMP.got" || \ + t_fail "cmp failed name len $name_len val len $val_len" setfattr -x $name "$FILE" }