aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/run_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run_tests.py b/tests/run_tests.py
index f0f7a37..3857d71 100755
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -393,7 +393,7 @@ def elflink_and_share_test(cmd, pre=""):
clear_hpages()
for link_str in ("xB.", "xBDT."):
for i in range(2):
- do_elflink_test(link_str + cmd, combine("HUGETLB_SHARE=1", pre))
+ do_elflink_test(link_str + cmd, combine("HUGETLB_SHARE=%d" % i, pre))
clear_hpages()
def elflink_rw_and_share_test(cmd, pre=""):
@@ -404,7 +404,7 @@ def elflink_rw_and_share_test(cmd, pre=""):
for mode in ("R", "W", "RW"):
for i in range(2):
do_test(cmd, combine("HUGETLB_ELFMAP=" + mode + " " + \
- "HUGETLB_SHARE=1", pre))
+ "HUGETLB_SHARE=%d" % i, pre))
clear_hpages()
def setup_shm_sysctl(limit):