From a33b5edda009c91302d1e5f72ae0d21c221b7b48 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 15 Nov 2010 02:37:23 +0000 Subject: [PATCH] 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 --- test/openssl/test_ssl.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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