summaryrefslogtreecommitdiff
path: root/regress/bin/systrace/id/id.sh
blob: 06e479be7581b38a9bb5758fc25cfbf3f938988a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/ksh
# $OpenBSD: id.sh,v 1.1 2004/01/15 17:14:43 sturm Exp $

echo "/bin/systrace -f $1 -a /usr/bin/id"
SYSTR_RES=`eval /bin/systrace -f $1 -a /usr/bin/id 2>/dev/null`
NORM_RES=`/usr/bin/id`
if [ -z "$SYSTR_RES" ] ; then
	rm -f id.core
	echo "Systrace of /usr/bin/id failed"
	exit 1
fi

if [ "$NORM_RES" != "$SYSTR_RES" ] ; then
	echo "Expected \"$NORM_RES\""
	echo "Got \"$SYSTR_RES\""
	exit 1
fi

exit 0