diff options
| author | Enji Cooper <ngie@FreeBSD.org> | 2017-04-04 21:36:13 +0000 |
|---|---|---|
| committer | Enji Cooper <ngie@FreeBSD.org> | 2017-04-04 21:36:13 +0000 |
| commit | ba8c8a0ca21f8a7c97fee44ccf676bc6660c660b (patch) | |
| tree | caf5c76f03d3d499ebda47bfe75665bf0a49cdc1 /usr.sbin/extattr | |
| parent | d2d2a79c1a9a64ef558314f78e0a7f80988ec9d1 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/extattr')
| -rwxr-xr-x | usr.sbin/extattr/tests/extattr_test.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/extattr/tests/extattr_test.sh b/usr.sbin/extattr/tests/extattr_test.sh index c622bb627a13..946183b54dc4 100755 --- a/usr.sbin/extattr/tests/extattr_test.sh +++ b/usr.sbin/extattr/tests/extattr_test.sh @@ -70,10 +70,15 @@ long_name_head() { } long_name_body() { check_fs + + if ! NAME_MAX=$(getconf NAME_MAX .); then + atf_skip "Filesystem not reporting NAME_MAX; skipping testcase" + fi + # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208965 atf_expect_fail "BUG 208965 extattr(2) doesn't allow maxlen attr names" - ATTRNAME=`jot -b X -s "" 255 0` + ATTRNAME=`jot -b X -s "" $NAME_MAX 0` touch foo atf_check -s exit:0 -o empty setextattr user $ATTRNAME myvalue foo atf_check -s exit:0 -o inline:"${ATTRNAME}\n" lsextattr -q user foo |
