Skip to contentSkip to conversation

Merge fork06 and fork11 into new test

PATCH Applied Andrea Cervesato 2 participants 2 messages Sep 8, 2023 – Oct 11, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Merge fork06 and fork11 into new test

From: Andrea Cervesato <[email protected]>

fork06 and fork11 worked in the same way, spawning multiple processes inside parent and waiting until they complete by checking wait() pid result. fork06 was spawning 1000 children, fork11 was spawning 100 children. For this reason, fork_procs now merges both of them, including an option that selects amount of processes we want to spawn.

---
 runtest/syscalls                            |   4 +-
 testcases/kernel/syscalls/fork/.gitignore   |   3 +-
 testcases/kernel/syscalls/fork/fork06.c     | 106 --------------------
 testcases/kernel/syscalls/fork/fork11.c     |  97 ------------------
 testcases/kernel/syscalls/fork/fork_procs.c |  55 ++++++++++
 5 files changed, 58 insertions(+), 207 deletions(-)
 delete mode 100644 testcases/kernel/syscalls/fork/fork06.c
 delete mode 100644 testcases/kernel/syscalls/fork/fork11.c
 create mode 100644 testcases/kernel/syscalls/fork/fork_procs.c
runtest/syscalls +2 -2
index b1125dd75..ca1959e90 100644
@@ -379,12 +379,12 @@ fork01 fork01
 fork03 fork03
 fork04 fork04
 fork05 fork05
-fork06 fork06
+fork06 fork_procs -n 1000
 fork07 fork07
 fork08 fork08
 fork09 fork09
 fork10 fork10
-fork11 fork11
+fork11 fork_procs -n 100
 fork13 fork13
 fork14 fork14
 
testcases/kernel/syscalls/fork/.gitignore +1 -2
index b817e9c05..55e30edb4 100644
@@ -2,12 +2,11 @@
 /fork03
 /fork04
 /fork05
-/fork06
 /fork07
 /fork08
 /fork09
 /fork10
-/fork11
 /fork12
 /fork13
 /fork14
+/fork_procs
testcases/kernel/syscalls/fork/fork06.c deleted +0 -106

106 lines not on this page · raw message

testcases/kernel/syscalls/fork/fork11.c deleted +0 -97

97 lines not on this page · raw message

testcases/kernel/syscalls/fork/fork_procs.c new file +55 -0

55 lines not on this page · raw message

Signature · 5 lines
2.35.3


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hello,

Quoted 9 lines · Andrea Cervesato

From: Andrea Cervesato <[email protected]>

fork06 and fork11 worked in the same way, spawning multiple processes inside parent and waiting until they complete by checking wait() pid result. fork06 was spawning 1000 children, fork11 was spawning 100 children. For this reason, fork_procs now merges both of them, including an option that selects amount of processes we want to spawn.

Merged, thanks!

Signature · 5 lines
Thank you,
Richard.

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