diff --git a/graviola/src/low/aarch64/aes.rs b/graviola/src/low/aarch64/aes.rs index f3050550..7e9b7fd7 100644 --- a/graviola/src/low/aarch64/aes.rs +++ b/graviola/src/low/aarch64/aes.rs @@ -495,6 +495,7 @@ mod tests { // these test vectors from FIPS-197 appendices A.1 - A.3. #[test] + #[cfg(panic = "unwind")] fn test_construct() { // The generic AesKey::new wrapper should create the proper subtype of key when called // with a 128- or 256-bit value and should fail with any other argument length. diff --git a/graviola/src/low/x86_64/aes.rs b/graviola/src/low/x86_64/aes.rs index 538f6c26..fdf76281 100644 --- a/graviola/src/low/x86_64/aes.rs +++ b/graviola/src/low/x86_64/aes.rs @@ -334,6 +334,7 @@ mod tests { // these test vectors from FIPS-197 appendices A.1 - A.3. #[test] + #[cfg(panic = "unwind")] fn test_construct() { // The generic AesKey::new wrapper should create the proper subtype of key when called // with a 128- or 256-bit value and should fail with any other argument length. diff --git a/rustls-graviola/src/sign.rs b/rustls-graviola/src/sign.rs index 957ca75f..560f774d 100644 --- a/rustls-graviola/src/sign.rs +++ b/rustls-graviola/src/sign.rs @@ -468,6 +468,7 @@ mod tests { assert!(signer.sign(&message).is_ok()); println!("{:?}", signer); } + #[cfg(panic = "unwind")] for scheme in [ SignatureScheme::RSA_PKCS1_SHA1, SignatureScheme::ECDSA_NISTP256_SHA256,