Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:08

0001 #!/bin/bash
0002 
0003 # Pass in name and status
0004 function die { echo $1: status $2 ;  exit $2; }
0005 
0006 dir=${PWD}
0007 
0008 #test programs are placed on PATH when tests are run by scram
0009 testpath="testFWCoreSharedMemoryMonitorThread"
0010 
0011 $testpath 6 >& testFWCoreSharedMemoryMonitorThread.log && die "did not return signal" 1
0012 
0013 retValue=$?
0014 if [ "$retValue" != "134" ]; then
0015   echo "Wrong return value " $retValue
0016   exit $retValue
0017 else
0018   grep -q 'Action run' testFWCoreSharedMemoryMonitorThread.log || die 'Action not run' $?
0019   grep -q 'Worker: SIGNAL CAUGHT 6' testFWCoreSharedMemoryMonitorThread.log || die 'Signal not reported' $?
0020 fi
0021 
0022 
0023 $testpath 11 >& testFWCoreSharedMemoryMonitorThread.log && die "did not return signal" 1
0024 
0025 retValue=$?
0026 if [ "$retValue" != "139" ]; then
0027   echo "Wrong return value " $retValue
0028   exit $retValue
0029 else
0030   grep -q 'Action run' testFWCoreSharedMemoryMonitorThread.log || die 'Action not run' $?
0031   grep -q 'Worker: SIGNAL CAUGHT 11' testFWCoreSharedMemoryMonitorThread.log || die 'Signal not reported' $?
0032 fi
0033