Skip to content

Refactor tests which are verifying fork/vfork functionalities

Andrea Cervesato ltp 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20260126-fork_refactoring-8067f844f8b6

Versions newest first

  1. v3 Latest3 patches 2 repliesIn review
  2. v23 patches 3 repliesSuperseded
  3. v13 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- fix fork09 not following the original idea
- don't check for NULL when free()
- Link to v2: https://lore.kernel.org/r/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3syscalls: refactor fork09 using new APItestcases/kernel/syscalls/fork/fork09.c+74 -1471 reply
2/3syscalls: refactor vfork01 using new APItestcases/kernel/syscalls/vfork/vfork01.c+48 -3260 replies
3/3syscalls: refactor vfork02 using new APItestcases/kernel/syscalls/vfork/vfork02.c+48 -2000 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchCyril HrubisPetr Vorel
1/3R-b R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [LTP] [PATCH v3 0/3] Refactor tests which are verifying fork/vfork functionalities

---
Changes in v3:
- fix fork09 not following the original idea
- don't check for NULL when free()
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- _exit(0) to avoid undefind behavior after fork/vfork
- finished uncompleted vfork02
- release getcwd() memory
- use SAFE_MALLOC() instead of SAFE_MMAP() to share between parent and
child
- missing fork_child in vfork01
- fix missing copyright
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Andrea Cervesato (3):
syscalls: refactor fork09 using new API
syscalls: refactor vfork01 using new API
syscalls: refactor vfork02 using new API

 testcases/kernel/syscalls/fork/fork09.c   | 221 ++++++------------
 testcases/kernel/syscalls/vfork/vfork01.c | 374 ++++--------------------------
 testcases/kernel/syscalls/vfork/vfork02.c | 248 ++++----------------
 3 files changed, 170 insertions(+), 673 deletions(-)

---
base-commit: e434de62b487441bcd3d6d6fb763ba58ca9e5eef
change-id: 20260126-fork_refactoring-8067f844f8b6

Best regards,

Signature · 5 lines
Andrea Cervesato <[email protected]>


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