Send a signal to mcexec after switching to that process.
Change-Id: Ia882ef5027931009ee65febd0cbe22022a755c4a Refs: #1505
This commit is contained in:
committed by
Masamichi Takagi
parent
b0bd1feefb
commit
afea6af667
25
test/issues/1505/C1505.sh
Normal file
25
test/issues/1505/C1505.sh
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
USELTP=1
|
||||
USEOSTEST=0
|
||||
|
||||
. ../../common.sh
|
||||
|
||||
################################################################################
|
||||
uname -m
|
||||
for i in msgrcv05:01 msgsnd05:02 semctl01:03 semop05:04 kill01:05 \
|
||||
kill02:06 kill06:07 kill07:08 kill08:09 kill09:10; do
|
||||
tp=`echo $i|sed 's/:.*//'`
|
||||
id=`echo $i|sed 's/.*://'`
|
||||
sudo PATH=$PATH:$LTPBIN $MCEXEC $LTPBIN/$tp 2>&1 | tee $tp.txt
|
||||
ok=`grep TPASS $tp.txt | wc -l`
|
||||
ng=`grep TFAIL $tp.txt | wc -l`
|
||||
if [ $ok = 0 -a $ng = 0 ]; then
|
||||
ok=`awk '/^passed/{print $2}' $tp.txt`
|
||||
ng=`awk '/^failed/{print $2}' $tp.txt`
|
||||
fi
|
||||
if [ $ng = 0 ]; then
|
||||
echo "*** C1505T$id: $tp PASS ($ok)"
|
||||
else
|
||||
echo "*** C1505T$id: $tp FAIL (ok=$ok ng=%ng)"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user