summaryrefslogtreecommitdiff
path: root/src/init/tests/main.c
diff options
context:
space:
mode:
authordzwdz2022-07-09 18:35:07 +0200
committerdzwdz2022-07-09 18:35:07 +0200
commitfcfb57c12ce4544017098092a66f8427584c1879 (patch)
treed149bb1c51265ae0dbf683125ee980829e53c0f6 /src/init/tests/main.c
parentdad8b261ac7898f4d8cf537ad288ad6a1a74d124 (diff)
init/test: mostly clean up the existing tests
Diffstat (limited to 'src/init/tests/main.c')
-rw-r--r--src/init/tests/main.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/init/tests/main.c b/src/init/tests/main.c
index 0ac399b..f0845fe 100644
--- a/src/init/tests/main.c
+++ b/src/init/tests/main.c
@@ -137,14 +137,6 @@ static void test_misc(void) {
assert(_syscall(~0, 0, 0, 0, 0) < 0); /* try making an invalid syscall */
}
-static void stress_fork(void) {
- /* run a lot of processes */
- for (size_t i = 0; i < 2048; i++) {
- if (!_syscall_fork(0, NULL)) _syscall_exit(0);
- _syscall_await();
- }
-}
-
void test_all(void) {
run_forked(test_await);
@@ -155,5 +147,4 @@ void test_all(void) {
run_forked(test_malloc);
run_forked(test_pipe);
run_forked(test_misc);
- run_forked(stress_fork);
}