coredump: fix behavior when gencore fail
Change-Id: Ifdddf867b514f42a6f1ce374ec06b7550a9cdad5 Refs: #1511
This commit is contained in:
committed by
Masamichi Takagi
parent
7efb394905
commit
422a399f20
40
test/issues/1511/C1511.sh
Normal file
40
test/issues/1511/C1511.sh
Normal file
@@ -0,0 +1,40 @@
|
||||
#/bin/sh
|
||||
|
||||
USELTP=1
|
||||
USEOSTEST=0
|
||||
|
||||
. ../../common.sh
|
||||
|
||||
PWD=`pwd`
|
||||
LTPLIST="${PWD}/ltp_list"
|
||||
issue="1511"
|
||||
tid=01
|
||||
|
||||
ulimit -S -c unlimited
|
||||
|
||||
for tp in oom02
|
||||
do
|
||||
tname=`printf "C${issue}T%02d" ${tid}`
|
||||
echo "*** ${tname} start *******************************"
|
||||
sudo $MCEXEC $LTPBIN/$tp 2>&1 | tee $tp.txt
|
||||
echo "test process exit"
|
||||
echo "*** ${tname} PASSED"
|
||||
let tid++
|
||||
echo ""
|
||||
done
|
||||
|
||||
while read tp
|
||||
do
|
||||
tname=`printf "C${issue}T%02d" ${tid}`
|
||||
echo "*** ${tname} start *******************************"
|
||||
sudo $MCEXEC $LTPBIN/$tp 2>&1 | tee $tp.txt
|
||||
ok=`grep PASS $tp.txt | wc -l`
|
||||
ng=`grep FAIL $tp.txt | wc -l`
|
||||
if [ $ng = 0 ]; then
|
||||
echo "*** ${tname} PASSED ($ok)"
|
||||
else
|
||||
echo "*** ${tname} FAILED (ok=$ok ng=$ng)"
|
||||
fi
|
||||
let tid++
|
||||
echo ""
|
||||
done < ${LTPLIST}
|
||||
Reference in New Issue
Block a user