aboutsummaryrefslogtreecommitdiff
path: root/tests/run_tests.py
diff options
context:
space:
mode:
authorDavid Gibson <dwg@au1.ibm.com>2009-08-19 16:03:37 +1000
committerEric B Munson <ebmunson@us.ibm.com>2009-08-19 12:24:13 +0100
commit8b47c3cf275fa7bed790fd6cb196c14d48b64112 (patch)
tree74780c2331ec7d9f3d459235c05f7b3b1c77b7b0 /tests/run_tests.py
parent742826a1b6e62828b30f6e9a7d96a1659ec0e0e0 (diff)
downloadlibhugetlbfs-8b47c3cf275fa7bed790fd6cb196c14d48b64112.tar.gz
Fix inner loop in elflink_and_share_test et al.
The run_tests.py functions elflink_and_share_test and elflink_rw_and_share_test have an inner loop which runs exactly the same tests twice. It looks like it's instead supposed to run them with HUGETLB_SHARE=0 then HUGETLB_SHARE=1. This patch fixes up the Python code so that that's actually what happens. Signed-off-by: David Gibson <dwg@au1.ibm.com> Signed-off-by: Eric B Munson <ebmunson@us.ibm.com>
Diffstat (limited to 'tests/run_tests.py')
-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):