summaryrefslogtreecommitdiff
path: root/test/openssl/test_asn1.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-10 16:08:39 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-10 16:25:28 +0900
commit203b7fa1ae8cc40d41c38d684f70b3fea7fae813 (patch)
treebfc49055e1a903fe38f4b2f5014516c1ff5e2dd5 /test/openssl/test_asn1.rb
parent6f522455bf801acefcd2ade0b2e4a2fef3cb70a4 (diff)
Guard static variable first
* ext/openssl/ossl_asn1.c (Init_ossl_asn1): register the static variable to grab an internal object, before creating the object. otherwise the just-created object could get collected during the global variable list allocation. [Bug #16196]
Diffstat (limited to 'test/openssl/test_asn1.rb')
-rw-r--r--test/openssl/test_asn1.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/openssl/test_asn1.rb b/test/openssl/test_asn1.rb
index 1170703775..ad76f07c05 100644
--- a/test/openssl/test_asn1.rb
+++ b/test/openssl/test_asn1.rb
@@ -635,6 +635,11 @@ class OpenSSL::TestASN1 < OpenSSL::TestCase
assert_equal data, seq.entries
end
+ def test_gc_stress
+ skip "very time consuming test"
+ assert_ruby_status([{"RUBY_DEBUG"=>"gc_stress"}, "--disable-gems", "-ropenssl", "-eexit"], timeout: 20)
+ end
+
private
def B(ary)