3 # __pmOptFetchRedo() used to cause a core dump
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
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>
25 fetchctl_t *root = (fetchctl_t *)0;
27 __pmOptFetchRedo(&root);
29 printf("__pmOptFetchRedo returns: %ld\n", (long)root);
35 cc
-o $tmp $tmp.c
-I$PCP_INC_DIR -I$PCP_INC_DIR/..
-L$PCP_LIB_DIR -lpcp -lpthread -ldl -lm