Drop unused condition check
[pcp.git] / qa / 312
blob84d76578f204be74541fcffd94b2c1c33eed9083
1 #! /bin/sh
2 # PCP QA Test No. 312
3 # sginap use in pmie with large deltas on 32 bit platforms can
4 # wrap and cause a sleep with negative size which, funnily enough,
5 # also causes multiple immediate rule evaluations (which we can
6 # now test for, to detect pmie brokenness).
8 # Copyright (c) 2007 Aconex.
11 seq=`basename $0`
12 echo "QA output created by $seq"
14 # get standard environment, filters and checks
15 . ./common.product
16 . ./common.filter
17 . ./common.check
19 signal=$PCP_BINADM_DIR/pmsignal
20 status=1 # failure is the default!
21 $sudo rm -rf $tmp.*
22 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
24 # real QA test starts here
25 echo 'load = sample.load;' | pmie -v -t 1hour >$tmp.out 2>$tmp.err &
26 pmie_pid=$!
28 pmsleep 1
29 $signal -s TERM $pmie_pid
30 wait
32 echo "pmie output ..."
33 cat $tmp.out
34 echo "pmie stderr ..."
35 cat $tmp.err
37 # success, all done
38 status=0
39 exit