From 87a38d1a5658938a3540b45ab04cc85a9135c8f0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 27 Dec 2010 07:45:28 +0000 Subject: t0015: increase reliability of test The worker process may fork before the original process is killed during daemonization. --- t/t0015-working_directory.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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/) } -- cgit v1.2.3-24-ge0c7