Skip to content

Commit 8f92004

Browse files
committed
Skip a test that hangs on OpenSSL 3.1.0
1 parent ead5e0a commit 8f92004

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

openssl/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ fn main() {
5050
if version >= 0x3_00_00_00_0 {
5151
println!("cargo:rustc-cfg=ossl300");
5252
}
53+
if version >= 0x3_01_00_00_0 {
54+
println!("cargo:rustc-cfg=ossl310");
55+
}
5356
}
5457

5558
if let Ok(version) = env::var("DEP_OPENSSL_LIBRESSL_VERSION_NUMBER") {

openssl/src/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,12 @@ cfg_if! {
401401

402402
#[cfg(test)]
403403
mod tests {
404+
#[cfg(not(ossl310))]
404405
use crate::nid::Nid;
405406

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

0 commit comments

Comments
 (0)