summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/sbin/sysctl/t_perm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/netbsd-tests/sbin/sysctl/t_perm.sh')
-rwxr-xr-xcontrib/netbsd-tests/sbin/sysctl/t_perm.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/netbsd-tests/sbin/sysctl/t_perm.sh b/contrib/netbsd-tests/sbin/sysctl/t_perm.sh
index 6acfd19..25b2975 100755
--- a/contrib/netbsd-tests/sbin/sysctl/t_perm.sh
+++ b/contrib/netbsd-tests/sbin/sysctl/t_perm.sh
@@ -1,4 +1,4 @@
-# $NetBSD: t_perm.sh,v 1.6 2012/03/18 09:46:50 jruoho Exp $
+# $NetBSD: t_perm.sh,v 1.7 2016/06/17 03:55:35 pgoyette Exp $
#
# Copyright (c) 2011 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -39,6 +39,7 @@ clean() {
sysctl_write() {
deadbeef="3735928559"
+ deadbeef_signed="-559038737"
sysctl $1 | cut -d= -f1 > $file
@@ -63,7 +64,7 @@ sysctl_write() {
# A functional verification that $deadbeef
# was not actually written to the node.
#
- if [ ! -z $(sysctl $1 | grep $deadbeef) ]; then
+ if [ ! -z $(sysctl $1 | grep -e $deadbeef -e $deadbeef_signed) ]; then
atf_fail "value was written"
fi
}
OpenPOWER on IntegriCloud