3 # test fix for #621699 pcp scripts should check the user has root access
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=1 # failure is the default!
17 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
19 # real QA test starts here
21 cat << EOFEOF > $tmp.script
23 . $PCP_SHARE_DIR/lib/pmdaproc.sh
29 echo "1. testing _check_userroot as a normal user (error is expected)"
35 echo "2. testing _check_userroot as the root user (no output expected)"