summaryrefslogtreecommitdiff
path: root/test/openssl/utils.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2021-10-13 14:24:53 +0900
committerKazuki Yamaguchi <k@rhe.jp>2021-10-16 19:39:13 +0900
commitcc8ff8b50d445b0621fef9f3dce0da02ec3d406f (patch)
tree1555de5f8063e2c92cd206a1f08edab8595ca6b4 /test/openssl/utils.rb
parent4991dabdd07a596fe815768438f7103bb51ff411 (diff)
[ruby/openssl] require Ruby 2.6 or later
Drop support for Ruby 2.3, 2.4, and 2.5. As of 2021-10, Ruby 2.6 is the oldest version that still receives security fixes from the Ruby core team, so it doesn't make much sense to keep code for those ancient versions. https://github.com/ruby/openssl/commit/3436bd040d
Diffstat (limited to 'test/openssl/utils.rb')
-rw-r--r--test/openssl/utils.rb12
1 files changed, 3 insertions, 9 deletions
diff --git a/test/openssl/utils.rb b/test/openssl/utils.rb
index ab5fab4ba37..85b771dceee 100644
--- a/test/openssl/utils.rb
+++ b/test/openssl/utils.rb
@@ -236,9 +236,7 @@ class OpenSSL::SSLTestCase < OpenSSL::TestCase
threads = []
begin
server_thread = Thread.new do
- if Thread.method_defined?(:report_on_exception=) # Ruby >= 2.4
- Thread.current.report_on_exception = false
- end
+ Thread.current.report_on_exception = false
begin
loop do
@@ -254,9 +252,7 @@ class OpenSSL::SSLTestCase < OpenSSL::TestCase
end
th = Thread.new do
- if Thread.method_defined?(:report_on_exception=)
- Thread.current.report_on_exception = false
- end
+ Thread.current.report_on_exception = false
begin
server_proc.call(ctx, ssl)
@@ -273,9 +269,7 @@ class OpenSSL::SSLTestCase < OpenSSL::TestCase
end
client_thread = Thread.new do
- if Thread.method_defined?(:report_on_exception=)
- Thread.current.report_on_exception = false
- end
+ Thread.current.report_on_exception = false
begin
block.call(port)