summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHoneyryderChuck <[email protected]>2024-10-19 17:09:51 +0100
committergit <[email protected]>2024-11-13 07:25:51 +0000
commit233576843721a551fa276ba5c3cf19b38fa4ead1 (patch)
tree8b376464f4a633994f6ffd399c5a05f9d45a960f /test
parent0f28be6ab9384ff3345c655d6dc04550222ed7fd (diff)
[ruby/openssl] make bn shareable when frozen
https://github.com/ruby/openssl/commit/d3c8e661e8
Diffstat (limited to 'test')
-rw-r--r--test/openssl/test_bn.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/openssl/test_bn.rb b/test/openssl/test_bn.rb
index ea88ff06ce..1217f250a7 100644
--- a/test/openssl/test_bn.rb
+++ b/test/openssl/test_bn.rb
@@ -365,6 +365,8 @@ class OpenSSL::TestBN < OpenSSL::TestCase
assert_include(128..255, Ractor.new { OpenSSL::BN.rand(8)}.take)
assert_include(0...2**32, Ractor.new { OpenSSL::BN.generate_prime(32) }.take)
assert_equal(0, Ractor.new { OpenSSL::BN.new(999).get_flags(OpenSSL::BN::CONSTTIME) }.take)
+ # test if shareable when frozen
+ assert Ractor.shareable?(@e1.freeze)
end
end
end