madvise: Support MADV_DONTDUMP and MADV_DODUMP on anonymous map

Change-Id: I231b62ed6803b797ec749ac70a66cdf8236204bd
refs: #1373
This commit is contained in:
TOIDA,Suguru
2020-03-06 15:02:38 +09:00
parent 01d06cb218
commit b2618a98f5
5 changed files with 126 additions and 0 deletions

32
test/issues/1373/run.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/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__
madvise08
madvise10
__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