mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-07 12:35:28 +00:00
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:
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user