about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-03-01 20:01:37 -0800
committerEric Wong <normalperson@yhbt.net>2009-03-03 11:13:13 -0800
commit695954139e17e186d31b32f476048832994f0022 (patch)
treec5a1896854abe9b763394d45a052977d0a6aa3f2
parent723254df772154e2790b26923d4827a096c53428 (diff)
downloadunicorn-695954139e17e186d31b32f476048832994f0022.tar.gz
Probably not a real bug, but test_exec has been experiencing
mysterious failures....
-rw-r--r--test/exec/test_exec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/exec/test_exec.rb b/test/exec/test_exec.rb
index 583c81d..6427453 100644
--- a/test/exec/test_exec.rb
+++ b/test/exec/test_exec.rb
@@ -81,9 +81,11 @@ end # after_fork
     @addr = ENV['UNICORN_TEST_ADDR'] || '127.0.0.1'
     @port = unused_port(@addr)
     @sockets = []
+    @start_pid = $$
   end
 
   def teardown
+    return if @start_pid != $$
     Dir.chdir(@pwd)
     FileUtils.rmtree(@tmpdir)
     @sockets.each { |path| File.unlink(path) rescue nil }