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

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
rG83c20b8a2da0: tests/sys/kern/crc32: Check for SSE4.2 before using it
Branches
Unknown
Tags
Unknown