Fix "Test "Error handling improvement" on arm64"
Change-Id: Ie3c835dfe65a9754628ca221f3f563b67b0eb1a0 Refs: #727 Refs: #873 Refs: #1011 Refs: #1232 Refs: #1233
This commit is contained in:
@@ -62,11 +62,31 @@ else
|
||||
result=-1
|
||||
fi
|
||||
|
||||
#######################
|
||||
# LTP regression test #
|
||||
#######################
|
||||
|
||||
while read line
|
||||
do
|
||||
tp=`echo ${line} | cut -d ' ' -f 1`
|
||||
|
||||
if [ ! -e ${LTPBIN}/${tp} ]; then
|
||||
echo "${LTPBIN}/${tp} not found."
|
||||
continue
|
||||
fi
|
||||
|
||||
sudo timeout -sKILL 5m sudo PATH=${LTPBIN}:${PATH} ${MCEXEC} ${LTPBIN}/${line}
|
||||
if [ $? != 0 ]; then
|
||||
echo "##### ${tp} returned not 0 #####"
|
||||
result=-1
|
||||
fi
|
||||
done < ./ltplist.txt
|
||||
|
||||
##################
|
||||
# ulimit -u test #
|
||||
##################
|
||||
|
||||
nprocs=`ps -ho pid,comm -U `whoami` | wc -l`
|
||||
nprocs=`ps -ho pid,comm -U \`whoami\` | wc -l`
|
||||
|
||||
${MCEXEC} -t $((8 - nprocs)) ${TESTMCK} -s kill -n 1 -- -p 6
|
||||
if [ $? == 0 ]; then
|
||||
@@ -85,25 +105,4 @@ else
|
||||
result=-1
|
||||
fi
|
||||
|
||||
#######################
|
||||
# LTP regression test #
|
||||
#######################
|
||||
|
||||
export PATH=${LTPBIN}:${PATH}
|
||||
while read line
|
||||
do
|
||||
tp=`echo ${line} | cut -d ' ' -f 1`
|
||||
|
||||
if [ ! -e ${LTPBIN}/${tp} ]; then
|
||||
echo "${LTPBIN}/${tp} not found."
|
||||
continue
|
||||
fi
|
||||
|
||||
timeout -sKILL 5m ${MCEXEC} ${LTPBIN}/${line}
|
||||
if [ $? != 0 ]; then
|
||||
echo "##### ${tp} returned not 0 #####"
|
||||
result=-1
|
||||
fi
|
||||
done < ./ltplist.txt
|
||||
|
||||
exit ${result}
|
||||
|
||||
Reference in New Issue
Block a user