summaryrefslogtreecommitdiff
path: root/test/openssl
diff options
context:
space:
mode:
authorHoneyryderChuck <[email protected]>2024-11-25 08:53:16 +0000
committergit <[email protected]>2024-12-07 07:52:02 +0000
commit5444885726bbb1b75bbc1c7a04a3837efb87b7d0 (patch)
tree1c45e9b675e425792f9c904acc8902200131ec15 /test/openssl
parent9cae90f9d704aa741a2b5a6a1bf2423d2c28c410 (diff)
[ruby/openssl] make configs shareable when frozen
https://github.com/ruby/openssl/commit/654cb22e21
Diffstat (limited to 'test/openssl')
-rw-r--r--test/openssl/test_config.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/openssl/test_config.rb b/test/openssl/test_config.rb
index f165ca4934..759a5bbd44 100644
--- a/test/openssl/test_config.rb
+++ b/test/openssl/test_config.rb
@@ -277,6 +277,15 @@ __EOC__
assert_equal(@it.sections.sort, c2.sections.sort)
end
+ if respond_to?(:ractor)
+ ractor
+ def test_ractor
+ assert(Ractor.shareable?(@it))
+ assert(Ractor.shareable?(OpenSSL::Config.parse("[empty]\n")))
+ assert(Ractor.shareable?(OpenSSL::Config::DEFAULT_CONFIG_FILE))
+ end
+ end
+
private
def in_tmpdir(*args)