Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH] set_mempolicy05: require CONFIG_NUMA
@ 2026-06-23 12:48 Avinesh Kumar via ltp
  2026-06-23 15:51 ` [LTP] " linuxtestproject.agent
  2026-06-24  8:14 ` [LTP] [PATCH] " Andrea Cervesato via ltp
  0 siblings, 2 replies; 9+ messages in thread
From: Avinesh Kumar via ltp @ 2026-06-23 12:48 UTC (permalink / raw)
  To: ltp

On kernels without CONFIG_NUMA=y set_mempolicy() returns ENOSYS,
which the test misreports as TFAIL.

set_mempolicy05.c:105: TFAIL: set_mempolicy should fail with EFAULT or EINVAL, instead returned 38

Add .needs_kconfigs with CONFIG_NUMA=y

Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.com>
---
 testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c b/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
index 65061bf3d..6c91beebc 100644
--- a/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
+++ b/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
@@ -115,6 +115,10 @@ static struct tst_test test = {
 		"ppc",
 		NULL
 	},
+	.needs_kconfigs = (const char *const[]){
+		"CONFIG_NUMA=y",
+		NULL
+	},
 	.tags = (const struct tst_tag[]) {
 		{"linux-git", "cf01fb9985e8"},
 		{"CVE", "CVE-2017-7616"},
-- 
2.54.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-06-26 14:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-23 12:48 [LTP] [PATCH] set_mempolicy05: require CONFIG_NUMA Avinesh Kumar via ltp
2026-06-23 15:51 ` [LTP] " linuxtestproject.agent
2026-06-24  8:14 ` [LTP] [PATCH] " Andrea Cervesato via ltp
2026-06-24 15:41   ` Avinesh Kumar via ltp
2026-06-25  7:01     ` Andrea Cervesato via ltp
2026-06-25 14:57       ` [LTP] [PATCH v2] set_mempolicy: " Avinesh Kumar via ltp
2026-06-26  9:13         ` Andrea Cervesato via ltp
2026-06-26 13:53           ` [LTP] [PATCH v3] " Avinesh Kumar via ltp
2026-06-26 14:11             ` Wei Gao via ltp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox