aboutsummaryrefslogtreecommitdiff
path: root/tests/run_tests.py
diff options
context:
space:
mode:
authorEric B Munson <ebmunson@us.ibm.com>2009-05-13 10:35:53 +0100
committerEric B Munson <ebmunson@us.ibm.com>2009-05-13 15:34:45 +0100
commit6673da41773f28675a12ffa994170be8fa798a1f (patch)
treebb81f53f9e1b3205ac11eb883bc33896696061a7 /tests/run_tests.py
parentb8d8bd39075e772da64bd7d5e75167c1b9eb6767 (diff)
downloadlibhugetlbfs-6673da41773f28675a12ffa994170be8fa798a1f.tar.gz
Wrapping tests to prevent machine hangs
The readahead, madvise, and the fadvise tests can all hang the running machine if the kernel bug they are testing is present. This patch wraps these tests so that they fail without running if the kernel version is less than 2.6.30. Signed-off-by: Eric B Munson <ebmunson@us.ibm.com> Acked-by: Mel Gorman <mel@csn.ul.ie>
Diffstat (limited to 'tests/run_tests.py')
-rwxr-xr-xtests/run_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/run_tests.py b/tests/run_tests.py
index ed246fc..871ae7c 100755
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -479,9 +479,9 @@ def functional_tests():
do_test("brk_near_huge")
do_test("task-size-overrun")
do_test("stack_grow_into_huge")
- do_test("readahead_reserve")
- do_test("madvise_reserve")
- do_test("fadvise_reserve")
+ do_test("readahead_reserve.sh")
+ do_test("madvise_reserve.sh")
+ do_test("fadvise_reserve.sh")
# Tests requiring an active mount and hugepage COW
do_test("private")