summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh25
1 files changed, 14 insertions, 11 deletions
diff --git a/tests.sh b/tests.sh
index bf0a65e..dac6f1b 100755
--- a/tests.sh
+++ b/tests.sh
@@ -663,17 +663,20 @@ sudo_tests=(
test_xtype_bind_mount
)
-if [ "$UNAME" = "Linux" ]; then
- sudo_tests+=(
- test_xattr
- test_L_xattr
- )
-else
- bsd_tests+=(
- test_xattr
- test_L_xattr
- )
-fi
+case "$UNAME" in
+ Darwin|FreeBSD)
+ bsd_tests+=(
+ test_xattr
+ test_L_xattr
+ )
+ ;;
+ *)
+ sudo_tests+=(
+ test_xattr
+ test_L_xattr
+ )
+ ;;
+esac
if [ "$DEFAULT" ]; then
POSIX=yes