diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-09-15 11:48:03 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-09-16 09:55:52 -0700 |
| commit | aa3c761c7095476acde9b7140cc1dfff2ee0e170 (patch) | |
| tree | 73361711ccfb9ea79d4ecee48d6d9097b57a4d11 /tests | |
| parent | 190d5d7fd725ff754f94e8e0cbfb69f279c82b5d (diff) | |
| download | focaccia-qemu-aa3c761c7095476acde9b7140cc1dfff2ee0e170.tar.gz focaccia-qemu-aa3c761c7095476acde9b7140cc1dfff2ee0e170.zip | |
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>
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/functional/x86_64/test_memlock.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/functional/x86_64/test_memlock.py b/tests/functional/x86_64/test_memlock.py index 2b515ff979..81bce80b0c 100755 --- a/tests/functional/x86_64/test_memlock.py +++ b/tests/functional/x86_64/test_memlock.py @@ -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') |