From c59dad8b8cca7087860e64d161250ab09edb14e9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 4 Nov 2009 23:47:41 -0800 Subject: test_exec: ensure master is killed after test The relative working_directory test runs so quickly that the master may not even have signal handlers setup by the time we're done with it. The proper way would be to not start workers until the master is ready, but that breaks some test cases horribly. --- test/exec/test_exec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/exec/test_exec.rb b/test/exec/test_exec.rb index 28ba24c..f6dfd6a 100644 --- a/test/exec/test_exec.rb +++ b/test/exec/test_exec.rb @@ -159,6 +159,7 @@ EOF assert_equal "#{pid}\n", File.read("#{other.path}/pid_file_here") assert File.exist?("#{other.path}/stderr_log_here") assert File.exist?("#{other.path}/stdout_log_here") + wait_master_ready("#{other.path}/stderr_log_here") Process.kill(:QUIT, pid) ensure -- cgit v1.2.3-24-ge0c7