3 # check that exit status in pmie actions processed correctly
4 # (problem raised by todd.c.davis@intel.com)
7 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
11 echo "QA output created by $seq"
13 # get standard environment, filters and checks
18 status
=0 # success is the default!
20 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
22 # real QA test starts here
24 echo 'hinv.ncpu > 0 -> shell "echo true; true";' | pmie
-f -t2 -T1 2>/dev
/null
27 echo 'hinv.ncpu > 0 -> shell "echo true; true" | shell "echo or true; true";' | pmie
-f -t2 -T1 2>/dev
/null
30 echo 'hinv.ncpu > 0 -> shell "echo true; true" & shell "echo and true; true";' | pmie
-f -t2 -T1 2>/dev
/null
33 echo 'hinv.ncpu > 0 -> shell "echo false; false" | shell "echo or true; true";' | pmie
-f -t2 -T1 2>/dev
/null
36 echo 'hinv.ncpu > 0 -> shell "echo false; false" & shell "echo and true; true";' | pmie
-f -t2 -T1 2>/dev
/null