madvise: Support MADV_WIPEONFORK, MADV_KEEPONFORK and MADV_NORMAL

Change-Id: I1d4cf5affa580d7304dfdc34fa4f1707c0df617c
refs: #1374
This commit is contained in:
TOIDA,Suguru
2020-03-06 15:00:37 +09:00
parent d82ac31bc6
commit 3300e65efc
7 changed files with 131 additions and 2 deletions

31
test/issues/1374/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__
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