summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-18 14:40:04 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-18 14:40:04 +0000
commitf4016943b1c8b445fcad05a25a27050d9437afd5 (patch)
treee6fdadd2f0081d020d0888fba5a280d2b177931b
parentcfea23b44d36d329934d35d7e91fabf52ea47e92 (diff)
downloadruby-f4016943b1c8b445fcad05a25a27050d9437afd5.tar.gz
ruby-f4016943b1c8b445fcad05a25a27050d9437afd5.tar.xz
ruby-f4016943b1c8b445fcad05a25a27050d9437afd5.zip
* test/openssl/test_ssl.rb: add workaround for Cygwin.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/openssl/test_ssl.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb
index e13ccbfb1..5ca981798 100644
--- a/test/openssl/test_ssl.rb
+++ b/test/openssl/test_ssl.rb
@@ -70,7 +70,7 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
block.call(server)
ensure
if server
- Process.kill(:KILL, pid)
+ Process.kill(:KILL, pid) if pid > 0
server.close
end
end
@@ -78,6 +78,10 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
def starttls(ssl)
ssl.puts("STARTTLS")
+
+ sleep 1 # When this line is eliminated, process on Cygwin blocks
+ # forever at ssl.connect. But I don't know why it does.
+
ssl.connect
end