docs: tweak formatting in pmrep(1) archive folio example
[pcp.git] / qa / 309
blob958357923482d3e6e06c7c22e5b96c5032d6d459
1 #! /bin/sh
2 # PCP QA Test No. 309
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.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
12 . ./common.product
13 . ./common.filter
14 . ./common.check
16 status=0 # success is the default!
17 $sudo rm -rf $tmp.*
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 \
30 | fgrep 'pmStore:' \
31 | sed -e 's/Permission denied/No permission to perform requested operation/'
32 $sudo $PCP_RC_DIR/pcp restart 2>&1 | _filter_pcp_start
33 status=0
35 # success, all done
36 exit