madvise: Add locked-page check to MADV_REMOVE

Change-Id: I95465ef11aa4c772ad0ecf5d25f757192f31b93b
refs: #1372
This commit is contained in:
TOIDA,Suguru
2020-03-06 15:02:31 +09:00
parent c78803ac08
commit 01d06cb218
4 changed files with 83 additions and 0 deletions

31
test/issues/1372/run.sh Executable file
View File

@ -0,0 +1,31 @@
#!/usr/bin/env bash
# run.sh COPYRIGHT FUJITSU LIMITED 2020
# load setting and booting mck.
USELTP=1
. ../../common.sh
chmod 777 /dev/mcos*
echo "test run."
ltp=`cat <<__EOL__
madvise02
__EOL__`
FAIL=0
for tp in $ltp
do
pushd ${LTPBIN} > /dev/null
${MCEXEC} ${LTPBIN}/${tp}
if [ $? -ne 0 ]; then
FAIL=1
fi
popd > /dev/null
done
if [ ${FAIL} -eq 1 ]; then
echo "test NG."
else
echo "test OK."
fi
mcstop