]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tests/sys/audit: Skip extattr tests if extattrs are not supported
authorAlex Richardson <arichardson@FreeBSD.org>
Tue, 2 Feb 2021 09:55:18 +0000 (09:55 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Wed, 17 Mar 2021 09:55:09 +0000 (09:55 +0000)
commit83ffec9005c979d228477ba70038891a5abba835
tree283a216fc394e964604076439976bd287897de1f
parent3b354efec1daeba3677a39f799541e8367033290
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)
tests/sys/audit/file-attribute-access.c
tests/sys/audit/file-attribute-modify.c
tests/sys/audit/utils.c
tests/sys/audit/utils.h