Fix "Test "Error handling improvement" on arm64"

* Fix test to make mcexec fail to fork()

Change-Id: I9a696787b5d4ce44541a4651622e5be60f9ef355
This commit is contained in:
Masamichi Takagi
2018-12-05 17:34:08 +09:00
parent 05c315857c
commit 8a684587fa

View File

@ -66,7 +66,9 @@ fi
# ulimit -u test # # ulimit -u test #
################## ##################
${MCEXEC} ${TESTMCK} -s kill -n 1 -- -p 6 nprocs=`ps -ho pid,comm -U `whoami` | wc -l`
${MCEXEC} -t $((8 - nprocs)) ${TESTMCK} -s kill -n 1 -- -p 6
if [ $? == 0 ]; then if [ $? == 0 ]; then
echo "ulimit -u 0001: OK" echo "ulimit -u 0001: OK"
else else
@ -75,7 +77,7 @@ else
fi fi
ulimit -u 9 ulimit -u 9
${MCEXEC} ${TESTMCK} -s kill -n 1 -- -p 6 ${MCEXEC} -t $((8 - nprocs)) ${TESTMCK} -s kill -n 1 -- -p 6
if [ $? != 0 ]; then if [ $? != 0 ]; then
echo "ulimit -u 0002: OK" echo "ulimit -u 0002: OK"
else else