[LTP] [PATCH 2/2] move_pages12: Increase loop count to 10,000

Martin Doucha mdoucha@suse.cz
Wed Mar 19 18:24:21 CET 2025


Since the test doesn't print hundreds of ENOMEM error messages anymore
after the previous change, it now runs too fast to reproduce the SIGBUS
bug. Increase loop count to make the bug reproducible again.

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
 testcases/kernel/syscalls/move_pages/move_pages12.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/move_pages/move_pages12.c b/testcases/kernel/syscalls/move_pages/move_pages12.c
index a5454b1ec..440773a38 100644
--- a/testcases/kernel/syscalls/move_pages/move_pages12.c
+++ b/testcases/kernel/syscalls/move_pages/move_pages12.c
@@ -74,7 +74,7 @@
 
 #ifdef HAVE_NUMA_V2
 
-#define LOOPS	1000
+#define LOOPS	10000
 #define PATH_MEMINFO	"/proc/meminfo"
 #define PATH_NR_HUGEPAGES	"/proc/sys/vm/nr_hugepages"
 #define PATH_HUGEPAGES	"/sys/kernel/mm/hugepages/"
-- 
2.47.0



More information about the ltp mailing list