From 05a5d51af9b9d87715d46d67e8cfcc0eb4e02f80 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 6 Mar 2022 14:01:55 +0000 Subject: [PATCH] miri: Skip digest read and write tests We don't have any unsafe here, and these end up using inline asm. --- src/utils.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.rs b/src/utils.rs index 182d52e2..6cf8de30 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -515,6 +515,7 @@ impl Read for DigestRead { } #[test] +#[cfg(not(miri))] fn test_digest_read() { let ibuffer = b"abc"; let exp = Sha512_256::digest(&ibuffer[..]); @@ -563,6 +564,7 @@ impl Write for DigestWrite { } #[test] +#[cfg(not(miri))] fn test_digest_write() { let ibuffer = b"xyz"; let exp = Sha512_256::digest(&ibuffer[..]); -- 2.30.2