[LTP] [PATCH v2 00/11] Fix tests failing with setsid

Andrea Cervesato andrea.cervesato@suse.de
Mon Jan 6 11:31:22 CET 2025


Following tests are failing when running on a new session started with
setsid command/syscall: pty01, ptem01, setpgid01.

Tihs patch-set refactor them in order to fix this issue. Some tests like
pty01 and ptem01 have been split into multiple files due to their
complexity.

Fixes: https://github.com/linux-test-project/kirk/issues/28
Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
Changes in v2:
- add SAFE_PTSNAME macro
- ptem01: check ptsname() with TBROK
- Link to v1: https://lore.kernel.org/r/20241211-fix_setsid_tests-v1-0-e103f36c6462@suse.com

---
Andrea Cervesato (11):
      Refactor setpgid01 test
      Add SAFE_PTSNAME macro
      Refactor ptem01 test
      Add ptem02 test
      Add ptem03 test
      Add ptem04 test
      Add ptem05 test
      Add ptem06 test
      Refactor pty01 test
      Add pty08 test
      Add pty09 test

 include/tst_safe_macros.h                     |   4 +
 lib/tst_safe_macros.c                         |  14 +
 runtest/pty                                   |   7 +
 testcases/kernel/pty/.gitignore               |   7 +
 testcases/kernel/pty/ptem01.c                 | 454 +++-----------------------
 testcases/kernel/pty/ptem02.c                 |  73 +++++
 testcases/kernel/pty/ptem03.c                 |  51 +++
 testcases/kernel/pty/ptem04.c                 |  52 +++
 testcases/kernel/pty/ptem05.c                 |  53 +++
 testcases/kernel/pty/ptem06.c                 |  54 +++
 testcases/kernel/pty/pty01.c                  | 416 +++--------------------
 testcases/kernel/pty/pty08.c                  |  57 ++++
 testcases/kernel/pty/pty09.c                  |  86 +++++
 testcases/kernel/syscalls/setpgid/setpgid01.c | 152 ++-------
 14 files changed, 570 insertions(+), 910 deletions(-)
---
base-commit: 7aea2cea9ad5d9e1586112a57948c7f85dc12970
change-id: 20241204-fix_setsid_tests-876a46267285

Best regards,
-- 
Andrea Cervesato <andrea.cervesato@suse.com>



More information about the ltp mailing list