3 # test for PV 941663 - pmdaInstance broken for name == NULL and inst != PM_IN_NULL in cached PMDAs
5 # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=0 # success is the default!
18 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
20 # real QA test starts here
22 # pmcd will segfault and pmstore will return an IPC error on linux
23 # systems that do not have the fix. This should not fail on IRIX
24 # (other than the expected pmstore EPERM error), but on Linux the
25 # disk.dev instance domain in the linux PMDA is cached, and the
26 # linux PMDA is a DSO, so pmcd takes the segfault.
28 echo 'expect "disk.dev.read: pmStore: No permission to perform requested operation"'
29 pmstore disk.dev.
read 1 2>&1 \
31 |
sed -e 's/Permission denied/No permission to perform requested operation/'
32 $sudo $PCP_RC_DIR/pcp restart
2>&1 | _filter_pcp_start