aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLans Zhang <jia.zhang@windriver.com>2013-01-16 09:23:32 +0800
committerChen, Gong <gong.chen@linux.intel.com>2015-01-21 21:24:00 -0500
commit5b46f71f60dbeff90188d6bb146feede41d679f2 (patch)
treea1d12cd581ba42dba85f8257089b3b57503e1844
parent1e6a44dcc84ea42f88aa49a771869d75803b4b29 (diff)
downloadmce-test-5b46f71f60dbeff90188d6bb146feede41d679f2.tar.gz
Mount hugetlbfs for hwposion-hard test
anonymous hugepage, file backed hugepage and shared memory hugepage need a mounted hugetlbfs. Signed-off-by: Lans Zhang <jia.zhang@windriver.com> Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
-rwxr-xr-xcases/function/hwpoison/run_hard.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/cases/function/hwpoison/run_hard.sh b/cases/function/hwpoison/run_hard.sh
index 017d387..8bc0803 100755
--- a/cases/function/hwpoison/run_hard.sh
+++ b/cases/function/hwpoison/run_hard.sh
@@ -14,6 +14,11 @@ EOF
echo 0 > $TMP_DIR/error.$$
pushd `dirname $0` > /dev/null
+
+HT=$TMP_DIR/hugepage
+mkdir -p $HT
+mount -t hugetlbfs none $HT
+
./tinjpage
./tsimpleinj
if ! ./tkillpoison
@@ -25,6 +30,7 @@ else
fi
./tprctl
+umount $HT
popd > /dev/null
grep -q "1" $TMP_DIR/error.$$