summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2022-12-23 06:04:20 +0900
committerKazuki Yamaguchi <k@rhe.jp>2022-12-23 09:39:15 +0900
commit75e7b85e3ec0b9724cce585d31c2c3c5aaa6a9a0 (patch)
tree55a97bef221e8ff1ec2b28ff262dd692a6994853
parent0e11d2c3f8a74d2310efa67179b50c12acb3fa42 (diff)
[ruby/openssl] test/openssl/test_pkey.rb: allow failures in test_s_generate_parameters
The root cause has been fixed by OpenSSL 3.0.6, but Ubuntu 22.04's OpenSSL package has not backported the patch yet. Reference: https://github.com/ruby/openssl/issues/492 https://github.com/ruby/openssl/commit/f2e2a5e5ed
-rw-r--r--test/openssl/test_pkey.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/openssl/test_pkey.rb b/test/openssl/test_pkey.rb
index 544340e378..1219f3f1d7 100644
--- a/test/openssl/test_pkey.rb
+++ b/test/openssl/test_pkey.rb
@@ -47,6 +47,11 @@ class OpenSSL::TestPKey < OpenSSL::PKeyTestCase
raise "exit!" if cb_called.size == 3
}
}
+ if !cb_called && openssl?(3, 0, 0) && !openssl?(3, 0, 6)
+ # Errors in BN_GENCB were not properly handled. This special pend is to
+ # suppress failures on Ubuntu 22.04, which uses OpenSSL 3.0.2.
+ pend "unstable test on OpenSSL 3.0.[0-5]"
+ end
assert_not_empty cb_called
end