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 <zab@versity.com>
This commit is contained in:
Zach Brown
2022-08-22 15:18:58 -07:00
parent 29538a9f45
commit 98e514e5f4

View File

@@ -36,7 +36,8 @@ test_xattr_lengths() {
else else
echo "$name=\"$val\"" > "$T_TMP.good" echo "$name=\"$val\"" > "$T_TMP.good"
fi 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" setfattr -x $name "$FILE"
} }