Print this page
XXX Remove nawk(1)
*** 21,31 ****
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
- #ident "%Z%%M% %I% %E% SMI"
script()
{
$dtrace -wq -o $tmpfile -s /dev/stdin 2> $errfile <<EOF
BEGIN
--- 21,30 ----
*** 85,95 ****
echo "$0: unexpected contents in $tmpfile: " \
"expected 123, found $i"
status=100
fi
! i=`wc -l $errfile | nawk '{ print $1 }'`
if [ "$i" -lt 6 ]; then
echo "$0: expected at least 6 lines of stderr, found $i lines"
status=101
fi
--- 84,94 ----
echo "$0: unexpected contents in $tmpfile: " \
"expected 123, found $i"
status=100
fi
! i=`wc -l $errfile | /usr/xpg4/bin/awk '{ print $1 }'`
if [ "$i" -lt 6 ]; then
echo "$0: expected at least 6 lines of stderr, found $i lines"
status=101
fi