public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/3] ipc/semget05: Fix .save_restore flags
@ 2023-05-05 14:56 Martin Doucha
  2023-05-05 14:56 ` [LTP] [PATCH 2/3] ipc/semget05: Set dynamic run time Martin Doucha
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Martin Doucha @ 2023-05-05 14:56 UTC (permalink / raw)
  To: ltp

The test can run without root privileges. Add TST_SR_SKIP_RO to ignore
read-only permissions on /proc/sys/kernel/sem.

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
 testcases/kernel/syscalls/ipc/semget/semget05.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/ipc/semget/semget05.c b/testcases/kernel/syscalls/ipc/semget/semget05.c
index 38b0fad3c..d6810c11b 100644
--- a/testcases/kernel/syscalls/ipc/semget/semget05.c
+++ b/testcases/kernel/syscalls/ipc/semget/semget05.c
@@ -73,7 +73,8 @@ static struct tst_test test = {
 	.cleanup = cleanup,
 	.test_all = verify_semget,
 	.save_restore = (const struct tst_path_val[]){
-		{"/proc/sys/kernel/sem", NULL, TST_SR_TCONF},
+		{"/proc/sys/kernel/sem", NULL,
+			TST_SR_TCONF_MISSING | TST_SR_SKIP_RO},
 		{}
 	}
 };
-- 
2.40.0


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

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

end of thread, other threads:[~2023-05-08  1:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-05 14:56 [LTP] [PATCH 1/3] ipc/semget05: Fix .save_restore flags Martin Doucha
2023-05-05 14:56 ` [LTP] [PATCH 2/3] ipc/semget05: Set dynamic run time Martin Doucha
2023-05-05 16:24   ` Petr Vorel
2023-05-05 14:56 ` [LTP] [PATCH 3/3] doc: Fix typo in max_runtime docs Martin Doucha
2023-05-05 16:18   ` Petr Vorel
2023-05-08  1:31     ` Yang Xu (Fujitsu)
2023-05-05 16:20 ` [LTP] [PATCH 1/3] ipc/semget05: Fix .save_restore flags Petr Vorel

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