summaryrefslogtreecommitdiff
path: root/test/openssl
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-15 02:37:23 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-15 02:37:23 +0000
commita33b5edda009c91302d1e5f72ae0d21c221b7b48 (patch)
tree5cd4e6115b353bad7818f2f74f37fe583a21262e /test/openssl
parent10c73a7b44c452b46325b59bf925cae0c6d01598 (diff)
STDIN is not valid when ruby doesn't have tty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl')
-rw-r--r--test/openssl/test_ssl.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb
index 2d56a7058c..5051c63661 100644
--- a/test/openssl/test_ssl.rb
+++ b/test/openssl/test_ssl.rb
@@ -161,7 +161,9 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
end
def test_not_started_session
- OpenSSL::SSL::SSLSocket.new(STDIN).cert
+ open(__FILE__) do |f|
+ OpenSSL::SSL::SSLSocket.new(f).cert
+ end
end
def test_ssl_read_nonblock