pmrep: update TODO, man page
[pcp.git] / qa / 063
blob1946a33731563cd5e8534e853b145a43ce254702
1 #! /bin/sh
2 # PCP QA Test No. 063
3 # __pmOptFetchRedo() used to cause a core dump
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard filters
12 . ./common.product
13 . ./common.filter
15 trap "rm -f $tmp.* $tmp; exit" 0 1 2 3 15
17 # real QA test starts here
19 cat >$tmp.c <<End-of-File
20 #include <pcp/pmapi.h>
21 #include <pcp/impl.h>
23 int main()
25 fetchctl_t *root = (fetchctl_t *)0;
27 __pmOptFetchRedo(&root);
29 printf("__pmOptFetchRedo returns: %ld\n", (long)root);
31 exit(0);
33 End-of-File
35 cc -o $tmp $tmp.c -I$PCP_INC_DIR -I$PCP_INC_DIR/.. -L$PCP_LIB_DIR -lpcp -lpthread -ldl -lm
36 $tmp