NetBSD/regress/bin/systrace/id/id.sh

18 lines
355 B
Bash

#!/bin/ksh
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