From 8b47c3cf275fa7bed790fd6cb196c14d48b64112 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Wed, 19 Aug 2009 16:03:37 +1000 Subject: 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 Signed-off-by: Eric B Munson --- tests/run_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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): -- cgit v1.2.1