chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d26d2f
)
miri: Skip digest read and write tests
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 6 Mar 2022 14:01:55 +0000
(14:01 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 6 Mar 2022 14:04:24 +0000
(14:04 +0000)
We don't have any unsafe here, and these end up using inline asm.
src/utils.rs
patch
|
blob
|
history
diff --git
a/src/utils.rs
b/src/utils.rs
index 182d52e2d5f80abad8a412de580281451dfb95ff..6cf8de306df9f8f358c180fac72a4cda4fd4ac59 100644
(file)
--- a/
src/utils.rs
+++ b/
src/utils.rs
@@
-515,6
+515,7
@@
impl<D: Digest, R: Read> Read for DigestRead<D, R> {
}
#[test]
+#[cfg(not(miri))]
fn test_digest_read() {
let ibuffer = b"abc";
let exp = Sha512_256::digest(&ibuffer[..]);
@@
-563,6
+564,7
@@
impl<D: Digest, W: Write> Write for DigestWrite<D, W> {
}
#[test]
+#[cfg(not(miri))]
fn test_digest_write() {
let ibuffer = b"xyz";
let exp = Sha512_256::digest(&ibuffer[..]);