Clean up trailing whitespace
MFC after: 2 months Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
ea351d3f14
commit
9bf377826e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316503
@ -36,7 +36,7 @@ bad_namespace_body() {
|
||||
setextattr badnamespace myattr X foo
|
||||
atf_check -s not-exit:0 -e match:"Invalid argument" \
|
||||
lsextattr -q badnamespace foo
|
||||
}
|
||||
}
|
||||
|
||||
atf_test_case hex
|
||||
hex_head() {
|
||||
@ -48,7 +48,7 @@ hex_body() {
|
||||
atf_check -s exit:0 -o empty setextattr user myattr XYZ foo
|
||||
atf_check -s exit:0 -o inline:"58 59 5a\n" \
|
||||
getextattr -qx user myattr foo
|
||||
}
|
||||
}
|
||||
|
||||
atf_test_case hex_nonascii
|
||||
hex_nonascii_head() {
|
||||
@ -62,7 +62,7 @@ hex_nonascii_body() {
|
||||
getextattr user myattr foo
|
||||
atf_check -s exit:0 -o inline:"20 30 40 55 66 70 81 a2 b3 ee ff\n" \
|
||||
getextattr -qx user myattr foo
|
||||
}
|
||||
}
|
||||
|
||||
atf_test_case long_name
|
||||
long_name_head() {
|
||||
@ -81,7 +81,7 @@ long_name_body() {
|
||||
getextattr -q user ${ATTRNAME} foo
|
||||
atf_check -s exit:0 -o empty rmextattr user ${ATTRNAME} foo
|
||||
atf_check -s exit:0 -o empty lsextattr -q user foo
|
||||
}
|
||||
}
|
||||
|
||||
atf_test_case loud
|
||||
loud_head() {
|
||||
@ -99,7 +99,7 @@ loud_body() {
|
||||
printf "%s %s" $(getextattr user myattr foo)
|
||||
atf_check -s exit:0 -o empty rmextattr user myattr foo
|
||||
atf_check -s exit:0 -o inline:"foo" printf %s $(lsextattr user foo)
|
||||
}
|
||||
}
|
||||
|
||||
atf_test_case noattrs
|
||||
noattrs_head() {
|
||||
@ -109,7 +109,7 @@ noattrs_body() {
|
||||
check_fs
|
||||
touch foo
|
||||
atf_check -s exit:0 -o empty lsextattr -q user foo
|
||||
}
|
||||
}
|
||||
|
||||
atf_test_case nonexistent_file
|
||||
nonexistent_file_head() {
|
||||
@ -125,7 +125,7 @@ nonexistent_file_body() {
|
||||
getextattr user myattr foo
|
||||
atf_check -s exit:1 -e match:"No such file or directory" \
|
||||
rmextattr user myattr foo
|
||||
}
|
||||
}
|
||||
|
||||
atf_test_case null
|
||||
null_head() {
|
||||
@ -136,7 +136,7 @@ null_body() {
|
||||
touch foo
|
||||
atf_check -s exit:0 -o empty setextattr -n user myattr myvalue foo
|
||||
atf_check -s exit:0 -o inline:"myvalue\0\n" getextattr -q user myattr foo
|
||||
}
|
||||
}
|
||||
|
||||
atf_test_case one_user_attr
|
||||
one_user_attr_head() {
|
||||
@ -150,7 +150,7 @@ one_user_attr_body() {
|
||||
atf_check -s exit:0 -o inline:"myvalue\n" getextattr -q user myattr foo
|
||||
atf_check -s exit:0 -o empty rmextattr user myattr foo
|
||||
atf_check -s exit:0 -o empty lsextattr -q user foo
|
||||
}
|
||||
}
|
||||
|
||||
atf_test_case one_system_attr
|
||||
one_system_attr_head() {
|
||||
@ -165,7 +165,7 @@ one_system_attr_body() {
|
||||
atf_check -s exit:0 -o inline:"myvalue\n" getextattr -q system myattr foo
|
||||
atf_check -s exit:0 -o empty rmextattr system myattr foo
|
||||
atf_check -s exit:0 -o empty lsextattr -q system foo
|
||||
}
|
||||
}
|
||||
|
||||
atf_test_case stdin
|
||||
stdin_head() {
|
||||
@ -179,7 +179,7 @@ stdin_body() {
|
||||
atf_check -s exit:0 -o inline:"myattr\n" lsextattr -q user foo
|
||||
getextattr -qq user myattr foo > outfile || atf_fail "getextattr failed"
|
||||
atf_check -s exit:0 cmp -s infile outfile
|
||||
}
|
||||
}
|
||||
|
||||
atf_test_case stringify
|
||||
stringify_head() {
|
||||
@ -191,7 +191,7 @@ stringify_body() {
|
||||
atf_check -s exit:0 -o empty setextattr user myattr "my value" foo
|
||||
atf_check -s exit:0 -o inline:"\"my\\\040value\"\n" \
|
||||
getextattr -qs user myattr foo
|
||||
}
|
||||
}
|
||||
|
||||
atf_test_case symlink
|
||||
symlink_head() {
|
||||
@ -248,7 +248,7 @@ system_and_user_attrs_body() {
|
||||
atf_check -s exit:0 -o empty rmextattr system sysattr foo
|
||||
atf_check -s exit:0 -o empty lsextattr -q user foo
|
||||
atf_check -s exit:0 -o empty lsextattr -q system foo
|
||||
}
|
||||
}
|
||||
|
||||
atf_test_case two_files
|
||||
two_files_head() {
|
||||
@ -315,7 +315,7 @@ two_user_attrs_body() {
|
||||
atf_check -s exit:0 -o empty rmextattr user myattr2 foo
|
||||
atf_check -s exit:0 -o empty rmextattr user myattr1 foo
|
||||
atf_check -s exit:0 -o empty lsextattr -q user foo
|
||||
}
|
||||
}
|
||||
|
||||
atf_test_case unprivileged_user_cannot_set_system_attr
|
||||
unprivileged_user_cannot_set_system_attr_head() {
|
||||
@ -327,7 +327,7 @@ unprivileged_user_cannot_set_system_attr_body() {
|
||||
touch foo
|
||||
atf_check -s exit:1 -e match:"Operation not permitted" \
|
||||
setextattr system myattr myvalue foo
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
atf_init_test_cases() {
|
||||
|
Loading…
Reference in New Issue
Block a user