[LTP] [PATCH 1/1] TESTING PATCH
Petr Vorel
pvorel@suse.cz
Tue Mar 1 11:19:03 CET 2022
From: Cyril Hrubis <chrubis@suse.cz>
Testing only
---
testcases/kernel/mem/lib/mem.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/testcases/kernel/mem/lib/mem.c b/testcases/kernel/mem/lib/mem.c
index 39e3f1791c..ee9fc85b69 100644
--- a/testcases/kernel/mem/lib/mem.c
+++ b/testcases/kernel/mem/lib/mem.c
@@ -565,6 +565,9 @@ void test_ksm_merge_across_nodes(unsigned long nr_pages)
#endif
memset(memory[i], 10, length);
+
+ if (mlock(memory[i], length))
+ tst_res(TWARN | TERRNO, "mlock() failed");
}
SAFE_FILE_PRINTF(PATH_KSM "sleep_millisecs", "0");
--
2.35.1
More information about the ltp
mailing list