aboutsummaryrefslogtreecommitdiff
path: root/tests/test_bytes_odd_alloc.rs
diff options
context:
space:
mode:
authorGravatar Ralf Jung <post@ralfj.de> 2020-12-29 22:54:48 +0100
committerGravatar GitHub <noreply@github.com> 2020-12-29 22:54:48 +0100
commit27a0f9ca6e01b953805684eff535a14eaff937d0 (patch)
tree41ec3f1a111eadfd43b1ab5e5caf984d5f542991 /tests/test_bytes_odd_alloc.rs
parented71a7beb3fd0cc67cad08da2643cff2732f6b52 (diff)
downloadbytes-27a0f9ca6e01b953805684eff535a14eaff937d0.tar.gz
bytes-27a0f9ca6e01b953805684eff535a14eaff937d0.tar.zst
bytes-27a0f9ca6e01b953805684eff535a14eaff937d0.zip
CI: run test suite in Miri (#456)
Diffstat (limited to 'tests/test_bytes_odd_alloc.rs')
-rw-r--r--tests/test_bytes_odd_alloc.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_bytes_odd_alloc.rs b/tests/test_bytes_odd_alloc.rs
index 4ce424b..04ba7c2 100644
--- a/tests/test_bytes_odd_alloc.rs
+++ b/tests/test_bytes_odd_alloc.rs
@@ -1,6 +1,8 @@
//! Test using `Bytes` with an allocator that hands out "odd" pointers for
//! vectors (pointers where the LSB is set).
+#![cfg(not(miri))] // Miri does not support custom allocators (also, Miri is "odd" by default with 50% chance)
+
use std::alloc::{GlobalAlloc, Layout, System};
use std::ptr;