HomeFreeBSD

tests/sys/audit: Skip extattr tests if extattrs are not supported

Description

tests/sys/audit: Skip extattr tests if extattrs are not supported

In the CheriBSD CI, we run the testsuite with /tmp as tmpfs. This causes
the extattr audit tests to fail since tmpfs does not (yet) support
extattrs. Skip those tests if the target path is on a file system that
does not support extended file attributes.

While touching these two files also convert the ATF_REQUIRE_EQ(-1, ...)
checks to use ATF_REQURIE_ERRNO().

Reviewed By: asomers
Differential Revision: https://reviews.freebsd.org/D28392

(cherry picked from commit 40407d3998d1a12cbe929721f4dbe72b4be478a6)

Details

Provenance
arichardsonAuthored on Feb 2 2021, 9:55 AM
Reviewer
asomers
Differential Revision
D28392: tests/sys/audit: Skip extattr tests if extattrs are not supported
Parents
rG3b354efec1da: Update comment missed in 83ff5d5d98cbcf9b66dccd70022358aec8918a14
Branches
Unknown
Tags
Unknown