START	sys/kern/fork-exit	2024-08-15T21:33:58Z

==== run-fork1-exit ====
cc -O2 -pipe  -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /usr/src/regress/sys/kern/fork-exit/fork-exit.c
cc   -o fork-exit fork-exit.o -lpthread
# test forking a single child
ulimit -p 500 -n 1000; ./fork-exit

==== run-fork-exit ====
# fork 300 children and kill them simultaneously as process group
ulimit -p 500 -n 1000; ./fork-exit -p 300

==== run-fork-exec-exit ====
# fork 300 children, exec sleep programs, and kill process group
ulimit -p 500 -n 1000; ./fork-exit -e -p 300

==== run-fork1-thread1 ====
# fork a single child and create one thread
ulimit -p 500 -n 1000; ./fork-exit -t 1

==== run-fork1-thread ====
# fork a single child and create 1000 threads
ulimit -p 500 -n 1000; ./fork-exit -t 1000

==== run-fork-thread ====
# fork 30 children each with 30 threads and kill process group
ulimit -p 500 -n 1000; ./fork-exit -p 30 -t 30

==== run-fork1-heap ====
# allocate 400 MB of heap memory
ulimit -p 500 -n 1000; ./fork-exit -h 400000

==== run-fork-heap ====
# allocate 400 MB of heap memory in processes
ulimit -p 500 -n 1000; ./fork-exit -p 100 -h 4000

==== run-fork1-thread1-heap ====
# allocate 400 MB of heap memory in single child and one thread
ulimit -p 500 -n 1000; ./fork-exit -t 1 -h 400000

==== run-fork-thread-heap ====
# allocate 400 MB of heap memory in threads
ulimit -p 500 -n 1000; ./fork-exit -p 10 -t 100 -h 400
fork-exit: pthread_create: Resource temporarily unavailable
fork-exit: pthread_create: Resource temporarily unavailable
fork-exit: pthread_create: Resource temporarily unavailable
fork-exit: child 82273 not killed
*** Error 1 in . (Makefile:75 'run-fork-thread-heap')
FAILED

==== run-fork1-stack ====
# allocate 32 MB of stack memory
ulimit -p 500 -n 1000; ulimit -s 32768; ./fork-exit -s 32000

==== run-fork-stack ====
# allocate 400 MB of stack memory in processes
ulimit -p 500 -n 1000; ulimit -s 32768; ./fork-exit -p 100 -s 4000

==== run-fork1-thread1-stack ====
# allocate 400 MB of stack memory in single child and one thread
ulimit -p 500 -n 1000; ./fork-exit -t 1 -s 400000

==== run-fork-thread-stack ====
# allocate 400 MB of stack memory in threads
ulimit -p 500 -n 1000; ./fork-exit -p 10 -t 100 -s 400
fork-exit: pthread_create: Resource temporarily unavailable
fork-exit: pthread_create: Resource temporarily unavailable
fork-exit: child 52115 not killed
*** Error 1 in . (Makefile:95 'run-fork-thread-stack')
FAILED

==== cleanup ====
# check that all processes have been terminated and waited for
! pkill -u `id -u` fork-exit

FAIL	sys/kern/fork-exit	*** Error 1 in . (Makefile:75 'run-fork-thread-heap'), *** Error 1 in . (Makefile:95 'run-fork-thread-stack')