Skip to content

Commit eaa4410

Browse files
mdouchaxuyang0410
authored andcommitted
ipc/semget05: Fix .save_restore flags
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 <[email protected]> Reviewed-by: Petr Vorel <[email protected]> Reviewed-by: Yang Xu <[email protected]> Tested-by: Petr Vorel <[email protected]>
1 parent d357b5e commit eaa4410

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testcases/kernel/syscalls/ipc/semget/semget05.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ static struct tst_test test = {
7373
.cleanup = cleanup,
7474
.test_all = verify_semget,
7575
.save_restore = (const struct tst_path_val[]){
76-
{"/proc/sys/kernel/sem", NULL, TST_SR_TCONF},
76+
{"/proc/sys/kernel/sem", NULL,
77+
TST_SR_TCONF_MISSING | TST_SR_SKIP_RO},
7778
{}
7879
}
7980
};

0 commit comments

Comments
 (0)