[LTP] [PATCH v2 0/2] setpgid: Test EPERM error paths more reliably
Teo Couprie Diaz
teo.coupriediaz@arm.com
Thu Apr 20 18:09:08 CEST 2023
The current EPERM case in setpgid02 can fail in systems running the
login shell as init (PID 1).
Change the failing case to fail due to an invalid PGID instead of
a different session, but add a case in setpgid03 to continue
testing this error path in the kernel.
This is because setpgid03 already has the necessary scaffolding ready
by forking and synchronizing with a child that does setsid().
CI Build: https://github.com/Teo-CD/ltp/actions/runs/4756354740
Teo Couprie Diaz (2):
setpgid02: Use pid_max as PGID for EPERM
setpgid03: Add test for PGID in different session
testcases/kernel/syscalls/setpgid/setpgid02.c | 14 +++++++-------
testcases/kernel/syscalls/setpgid/setpgid03.c | 4 ++++
2 files changed, 11 insertions(+), 7 deletions(-)
--
2.34.1
More information about the ltp
mailing list