about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-27 07:45:28 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-27 07:45:28 +0000
commit87a38d1a5658938a3540b45ab04cc85a9135c8f0 (patch)
tree04c39d1f0cc70c061af4daec546addf6df05d851 /t
parent3a250fcfb9fcfa0ab3a8105821e670563025faa4 (diff)
downloadrainbows-87a38d1a5658938a3540b45ab04cc85a9135c8f0.tar.gz
The worker process may fork before the original process
is killed during daemonization.
Diffstat (limited to 't')
-rwxr-xr-xt/t0015-working_directory.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/t0015-working_directory.sh b/t/t0015-working_directory.sh
index 84fe4cc..16c366f 100755
--- a/t/t0015-working_directory.sh
+++ b/t/t0015-working_directory.sh
@@ -6,7 +6,7 @@ then
 fi
 . ./test-lib.sh
 
-t_plan 5 "config.ru inside alt working_directory"
+t_plan 6 "config.ru inside alt working_directory"
 
 t_begin "setup and start" && {
         rainbows_setup
@@ -41,6 +41,11 @@ EOF
         rainbows_wait_start
 }
 
+t_begin "reload to avoid race condition" && {
+        kill -HUP $rainbows_pid
+        test xSTART = x"$(cat $fifo)"
+}
+
 t_begin "hit with curl" && {
         body=$(curl -sSf http://$listen/)
 }