3 # exercise the -u (unbuffered) option for pmlogger that was added
6 # Copyright (c) 2002 Silicon Graphics, Inc. All Rights Reserved.
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
17 status
=0 # success is the default!
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
23 # real QA test starts here
25 echo "log mandatory on default { sample.bucket }" \
26 | pmlogger
-u -r -l $tmp.log
-t 2sec
-s 5 $tmp &
27 _wait_for_pmlogger $
! $tmp.log
31 # expect pmlogger above to run for (5-1)*2sec
32 for i
in 1 2 3 4 5 6 7 8 9 10
36 now
=`wc -c <$tmp.0 | sed -e 's/ //g'`
37 ls -l $tmp.0 >>$seq.full
38 echo "then=$then now=$now" >>$seq.full
39 if [ "$now" -ne "$then" ]
41 # expect this to happen 4 times
50 cat $tmp.log
>>$seq.full