Test "Error handling improvement" on arm64
The following test set: execve: fix memory leak add: NULL check for master_channel at IKC interrupt_handler. Fix the check routine for elf sections (Fujitsu: POSTK_TEMP_FIX_77) Change-Id: I16c2a341c48f6df10a4839be08b93ea16bda8fbe Refs: #727 Refs: #873 Refs: #1011
This commit is contained in:
committed by
Masamichi Takagi
parent
ec844bb6e3
commit
95e90c727e
36
test/error_handling/arm64/run_issue1011.sh
Executable file
36
test/error_handling/arm64/run_issue1011.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
## run_issue1011.sh COPYRIGHT FUJITSU LIMITED 2018 ##
|
||||
|
||||
USELTP=0
|
||||
USEOSTEST=0
|
||||
|
||||
. ../../common.sh
|
||||
|
||||
result=-1
|
||||
|
||||
##########################
|
||||
# Issue 1011 test(patch) #
|
||||
##########################
|
||||
|
||||
output=`${MCEXEC} hostname 2>&1`
|
||||
if [ $? != 0 ]; then
|
||||
echo "${output}" | grep -q "prepare: Invalid argument"
|
||||
if [ $? == 0 ]; then
|
||||
output=`tail -5 /var/log/messages`
|
||||
echo "${output}" | grep -q "kernel: mcexec_prepare_image: ERROR: # of sections: -1"
|
||||
if [ $? == 0 ]; then
|
||||
echo "Issue1011_0002: OK"
|
||||
result=0
|
||||
else
|
||||
echo "\"kernel: mcexec_prepare_image: ERROR: # of sections: -1\" not found."
|
||||
fi
|
||||
else
|
||||
echo "\"prepare: Invalid argument\" not found."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ${result} != 0 ]; then
|
||||
echo "Issue1011_0002: NG"
|
||||
fi
|
||||
|
||||
exit ${result}
|
||||
Reference in New Issue
Block a user