Skip to content

Commit

Permalink
Skip a test that hangs on OpenSSL 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Mar 21, 2023
1 parent ead5e0a commit 8f92004
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openssl/build.rs
Expand Up @@ -50,6 +50,9 @@ fn main() {
if version >= 0x3_00_00_00_0 {
println!("cargo:rustc-cfg=ossl300");
}
if version >= 0x3_01_00_00_0 {
println!("cargo:rustc-cfg=ossl310");
}
}

if let Ok(version) = env::var("DEP_OPENSSL_LIBRESSL_VERSION_NUMBER") {
Expand Down
3 changes: 3 additions & 0 deletions openssl/src/error.rs
Expand Up @@ -401,9 +401,12 @@ cfg_if! {

#[cfg(test)]
mod tests {
#[cfg(not(ossl310))]
use crate::nid::Nid;

#[test]
// Due to a bug in OpenSSL 3.1.0, this test can hang there. Skip for now.
#[cfg(not(ossl310))]
fn test_error_library_code() {
let stack = Nid::create("not-an-oid", "invalid", "invalid").unwrap_err();
let errors = stack.errors();
Expand Down

0 comments on commit 8f92004

Please sign in to comment.