mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
tests/functional/x86_64: Accept a few locked pages in test_memlock.py
Startup of libgcrypt locks a small pool of pages -- by default 16k. Testing for zero locked pages is isn't correct, while testing for 32k is a decent compromise. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@@ -37,7 +37,8 @@ class MemlockTest(QemuSystemTest):
|
||||
|
||||
status = self.get_process_status_values(self.vm.get_pid())
|
||||
|
||||
self.assertTrue(status['VmLck'] == 0)
|
||||
# libgcrypt may mlock a few pages
|
||||
self.assertTrue(status['VmLck'] < 32)
|
||||
|
||||
def test_memlock_on(self):
|
||||
self.common_vm_setup_with_memlock('on')
|
||||
|
||||
Reference in New Issue
Block a user