README: reference yahns
[zbatery.git] / t / t0006-sigchld.sh
blob35076f358db1367af7e88e28e3c518cf7737e7bf
1 #!/bin/sh
2 . ./test-lib.sh
4 # FIXME: fork + Fibers segfaults: https://redmine.ruby-lang.org/issues/5700
5 skip_models NeverBlock FiberSpawn FiberPool CoolioFiberSpawn
7 t_plan 8 "SIGCHLD handling for $model"
9 t_begin "setup and startup" && {
10 rtmpfiles curl_out
11 zbatery_setup $model
12 zbatery -D sigchld.ru -c $unicorn_config
13 zbatery_wait_start
16 t_begin "backtick" && {
17 test xhi = x"$(curl -sSf http://$listen/backtick)"
20 t_begin "system" && {
21 test xtrue = x"$(curl -sSf http://$listen/system)"
24 t_begin "fork_ignore" && {
25 test xFixnum = x"$(curl -sSf http://$listen/fork_ignore)"
28 t_begin "fork_wait" && {
29 test xtrue = x"$(curl -sSf http://$listen/fork_wait)"
32 t_begin "popen" && {
33 test xpopen = x"$(curl -sSf http://$listen/popen)"
36 t_begin "shutdown server" && {
37 kill -QUIT $zbatery_pid
40 dbgcat r_err
42 t_begin "check stderr" && check_stderr
44 t_done