robsd-exec: timeout 3600s + . /usr/local/libexec/robsd/util-regress.sh + config_load + << "EOF" + _err=0 + _env=REGRESS_FAIL_EARLY=no + config_value regress-sys/kern/fork-exit-env + 2> /dev/null + _env=REGRESS_FAIL_EARLY=no GOCACHE=/tmp + _make=make -C /home/src/regress/sys/kern/fork-exit REGRESS_FAIL_EARLY=no GOCACHE=/tmp + config_value regress-sys/kern/fork-exit-targets + regress_root sys/kern/fork-exit + export SUDO + unpriv -c staff build exec make -C /home/src/regress/sys/kern/fork-exit REGRESS_FAIL_EARLY=no GOCACHE=/tmp regress ==== run-fork1-exit ==== cc -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /home/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 ==== 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 ==== cleanup ==== # check that all processes have been terminated and waited for ! pkill -u `id -u` fork-exit