diff options
author | Yannick Brosseau <scientist@fb.com> | 2016-06-21 00:27:10 +0300 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2016-06-27 22:19:24 +0300 |
commit | bff124682eaa784596672bdd344b9b0f646035a2 (patch) | |
tree | b3e3230321e1e89dbbcd4a4cd32ee9225d57a5e2 /tools/testing/selftests | |
parent | ee65735dd5acecbf335f9aa32e3b129a1de9e184 (diff) | |
download | linux-bff124682eaa784596672bdd344b9b0f646035a2.tar.xz |
selftests/vm: Don't mlockall MCL_CURRENT in on-fault-limit test
The default MEMLOCK limit is not big enough to accomodate all the
current pages of the test program process, so the test fails
at this step.
By removing the MCL_CURRENT flag, we allow the mlockall
call to succeed. The mmap is twice the size of the current limit,
so it will still fail as expected.
Signed-off-by: Yannick Brosseau <scientist@fb.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests')
-rw-r--r-- | tools/testing/selftests/vm/on-fault-limit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/vm/on-fault-limit.c b/tools/testing/selftests/vm/on-fault-limit.c index 245acccce42d..0ae458f32fdb 100644 --- a/tools/testing/selftests/vm/on-fault-limit.c +++ b/tools/testing/selftests/vm/on-fault-limit.c @@ -20,7 +20,7 @@ static int test_limit(void) return ret; } - if (mlockall(MCL_CURRENT | MCL_ONFAULT | MCL_FUTURE)) { + if (mlockall(MCL_ONFAULT | MCL_FUTURE)) { perror("mlockall"); return ret; } |