Skip to content

Commit

Permalink
Merge branch 'maint-3.0'
Browse files Browse the repository at this point in the history
* maint-3.0:
  test/openssl/test_pkey.rb: allow failures in test_s_generate_parameters
  • Loading branch information
rhenium committed Dec 23, 2022
2 parents 804356a + ccc1594 commit c263cd4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/openssl/test_pkey.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ def test_s_generate_parameters
}

# Parameter generation callback is called
if openssl?(3, 0, 0, 0) && !openssl?(3, 0, 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
cb_called = []
assert_raise(RuntimeError) {
OpenSSL::PKey.generate_parameters("DSA") { |*args|
cb_called << args
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

Expand Down

0 comments on commit c263cd4

Please sign in to comment.