[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250717131857.59909-3-lianux.mm@gmail.com>
Date: Thu, 17 Jul 2025 21:18:57 +0800
From: wang lian <lianux.mm@...il.com>
To: akpm@...ux-foundation.org,
broonie@...nel.org,
david@...hat.com,
lorenzo.stoakes@...cle.com,
sj@...nel.org,
ziy@...dia.com,
linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Cc: brauner@...nel.org,
gkwang@...x-info.com,
jannh@...gle.com,
Liam.Howlett@...cle.com,
lianux.mm@...il.com,
ludovico.zy.wu@...il.com,
p1ucky0923@...il.com,
richard.weiyang@...il.com,
ryncsn@...il.com,
shuah@...nel.org,
vbabka@...e.cz,
zijing.zhang@...ton.me
Subject: [PATCH 2/2] selftests/mm: guard-regions: Use SKIP() instead of ksft_exit_skip()
To ensure only the current test is skipped on permission failure, instead
of terminating the entire test binary.
Signed-off-by: wang lian <lianux.mm@...il.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@...cle.com>
Acked-by: David Hildenbrand <david@...hat.com>
---
tools/testing/selftests/mm/guard-regions.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/mm/guard-regions.c b/tools/testing/selftests/mm/guard-regions.c
index 4b76e72e7053..b0d42eb04e3a 100644
--- a/tools/testing/selftests/mm/guard-regions.c
+++ b/tools/testing/selftests/mm/guard-regions.c
@@ -575,7 +575,7 @@ TEST_F(guard_regions, process_madvise)
/* OK we don't have permission to do this, skip. */
if (count == -1 && errno == EPERM)
- ksft_exit_skip("No process_madvise() permissions, try running as root.\n");
+ SKIP(return, "No process_madvise() permissions, try running as root.\n");
/* Returns the number of bytes advised. */
ASSERT_EQ(count, 6 * page_size);
--
2.43.0
Powered by blists - more mailing lists