Skip to content

Commit

Permalink
Skip the testcases if mac_bsdextended(4) isn't detected on the
Browse files Browse the repository at this point in the history
system

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
  • Loading branch information
ngie-eign committed Dec 21, 2015
1 parent e9b4f1b commit baed0db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/regression/mac/mac_bsdextended/test_matches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ if [ $(id -u) -ne 0 ]; then
echo "1..0 # SKIP test must be run as root"
exit 0
fi
if ! sysctl -N security.mac.bsdextended >/dev/null 2>&1; then
echo "1..0 # SKIP mac_bsdextended(4) support isn't available"
exit 0
fi
if ! playground=$(mktemp -d $TMPDIR/tmp.XXXXXXX); then
echo "1..0 # SKIP failed to create temporary directory"
exit 0
Expand Down

0 comments on commit baed0db

Please sign in to comment.