From 40d8629f293c24cbbd9a3289fe796496b0b2e970 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 25 Oct 2016 21:22:00 +0200 Subject: [PATCH] Make tests pass on a 32-bit system. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Testable on 64-bit Linux with: ``` rustup target add i686-unknown-linux-gnu cargo test --target i686-unknown-linux-gnu ``` (or similarly on anther 64-bit platforms), assuming a linker and libc for this target are available on the system. Leaving #162 open to add CI for this. (Unfortunately Travis doesn’t use rustup out of the box.) --- src/atom/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/atom/mod.rs b/src/atom/mod.rs index e3f6b8b..6ff7e5f 100644 --- a/src/atom/mod.rs +++ b/src/atom/mod.rs @@ -723,7 +723,8 @@ mod tests { // Guard against accidental changes to the sizes of things. assert_eq!(mem::size_of::(), if compiler_uses_inline_drop_flags { 16 } else { 8 }); - assert_eq!(40, mem::size_of::()); + assert_eq!(mem::size_of::(), + 8 + 4 * mem::size_of::()); } #[test]