summaryrefslogtreecommitdiff
path: root/test/openssl
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-08 02:01:22 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-08 02:01:22 +0000
commit6294d065bba7d59a9fb7b50483a9f91f4e6405fd (patch)
tree846307f2cc246cf9ba5d5c56c184acd835b46a6e /test/openssl
parent048acb66383cae6926c0d4a661f1b87bb62d716f (diff)
downloadruby-6294d065bba7d59a9fb7b50483a9f91f4e6405fd.tar.gz
select before read_nonblock.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl')
-rw-r--r--test/openssl/test_pair.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/openssl/test_pair.rb b/test/openssl/test_pair.rb
index ea8fc773cb..271459f55e 100644
--- a/test/openssl/test_pair.rb
+++ b/test/openssl/test_pair.rb
@@ -156,6 +156,7 @@ class OpenSSL::TestPair < Test::Unit::TestCase
}
assert_match(/SSL_ERROR_WANT_READ/, err.message)
s1.write "abc\ndef\n"
+ IO.select([s2])
assert_equal("ab", s2.read_nonblock(2))
assert_equal("c\n", s2.gets)
ret = nil