[PATCH] set_mempolicy05: require CONFIG_NUMA
Avinesh Kumar via ltp <[email protected]>
| Newsgroups | gmane.linux.ltp |
|---|---|
| Message-ID | <[email protected]> |
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-IBi9RG/[email protected]> --- 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