Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2015 08:58:15 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r292533 - head/tools/regression/mac/mac_bsdextended
Message-ID:  <201512210858.tBL8wFQu079407@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Mon Dec 21 08:58:14 2015
New Revision: 292533
URL: https://svnweb.freebsd.org/changeset/base/292533

Log:
  Skip the testcases if mac_bsdextended(4) isn't detected on the
  system
  
  MFC after: 2 weeks
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/tools/regression/mac/mac_bsdextended/test_matches.sh

Modified: head/tools/regression/mac/mac_bsdextended/test_matches.sh
==============================================================================
--- head/tools/regression/mac/mac_bsdextended/test_matches.sh	Mon Dec 21 08:53:26 2015	(r292532)
+++ head/tools/regression/mac/mac_bsdextended/test_matches.sh	Mon Dec 21 08:58:14 2015	(r292533)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512210858.tBL8wFQu079407>