aboutsummaryrefslogtreecommitdiff
path: root/tests/run_tests.py
diff options
context:
space:
mode:
authorMel Gorman <mel@csn.ul.ie>2009-05-07 12:09:19 +0100
committerEric B Munson <ebmunson@us.ibm.com>2009-05-07 17:21:47 +0100
commit87da3afe9dee4ad71a8686da857f27e427ff43ac (patch)
treeca722bc4c93460c2dbe15fe501e908523a49588a /tests/run_tests.py
parent0f0d453483382266c8d2139602df3bb4083e8c96 (diff)
downloadlibhugetlbfs-87da3afe9dee4ad71a8686da857f27e427ff43ac.tar.gz
Add a regression test for leakingreserve count due to fadvise and readahead
Use of fadvise() or readahead() on a hugetlbfs-backed memory region can result in reservations being leaked and in some cases the kernel triggering a BUG. This patch adds a regression tests for these conditions. Signed-off-by: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Eric B Munson <ebmunson@us.ibm.com>
Diffstat (limited to 'tests/run_tests.py')
-rwxr-xr-xtests/run_tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/run_tests.py b/tests/run_tests.py
index 6510787..ed246fc 100755
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -479,7 +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")
# Tests requiring an active mount and hugepage COW
do_test("private")