aboutsummaryrefslogtreecommitdiff
path: root/tests/run_tests.py
diff options
context:
space:
mode:
authorMel Gorman <mel@csn.ul.ie>2009-05-06 14:52:09 +0100
committerEric B Munson <ebmunson@us.ibm.com>2009-05-07 11:30:52 +0100
commita01fe7eced60f09f2d951a2905771e51e7e55a40 (patch)
tree8560c267798a0c1056699f64c37fc4a1bc185d43 /tests/run_tests.py
parentc7f09a2de60395e069eada3fa1cdbae00381dfc0 (diff)
downloadlibhugetlbfs-a01fe7eced60f09f2d951a2905771e51e7e55a40.tar.gz
Add a regression test for leakingreserve count due to madvise() V2
Use of madvise() on a hugetlbfs-backed memory region can result in reservations being leaked. This affects recent kernels (e.g. 2.6.29) but is fixed by commit a425a638c858fd10370b573bde81df3ba500e271. This patch adds a regression test for the bug. Changelog since V1 o Add a note on what kernel commit fixes the bug 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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/run_tests.py b/tests/run_tests.py
index 042d427..6510787 100755
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -479,6 +479,7 @@ def functional_tests():
do_test("brk_near_huge")
do_test("task-size-overrun")
do_test("stack_grow_into_huge")
+ do_test("madvise_reserve")
# Tests requiring an active mount and hugepage COW
do_test("private")