This skips two tests on OpenBSD when cause hangs when running the tests.
This is obviously not a permanent fix, but I'm not sure why the tests
are hanging, and hanging during a test is bad. I suppose you could
also use a timeout, so the test fails instead of hangs. I'll be happy
to test other patches to either the test suite or the library code
(assuming the hang is fixable on OpenBSD).
After this patch, the test suite passes fine on OpenBSD.
Jeremy
--- test/exec/test_exec.rb.orig Mon Nov 14 18:38:09 2011
+++ test/exec/test_exec.rb Mon Nov 14 18:38:37 2011
@@ -968,7 +968,7 @@ EOF
assert_nothing_raised { Process.kill(:QUIT, daemon_pid) }
wait_for_death(daemon_pid)
end
- end
+ end unless RUBY_PLATFORM =~ /openbsd/i
def test_default_listen_upgrade_holds_listener
default_listen_lock do
@@ -998,7 +998,7 @@ EOF
assert_nothing_raised { Process.kill(:QUIT, daemon_pid) }
wait_for_death(daemon_pid)
end
- end
+ end unless RUBY_PLATFORM =~ /openbsd/i
def default_listen_setup
File.open("config.ru", "wb") { |fp| fp.syswrite(HI.gsub("HI", '#$$')) }
_______________________________________________
Unicorn mailing list - [email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying