From bc480f8e7c966a4c9bdc1a97896268c5e78771fd Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 22 Apr 2019 14:34:25 +0200 Subject: [PATCH] Update test_size tests for 32-bit architectures --- src/bookmarks.rs | 2 +- src/delay.rs | 2 +- src/disco.rs | 2 +- src/forwarding.rs | 2 +- src/iq.rs | 4 ++-- src/jingle.rs | 2 +- src/jingle_s5b.rs | 2 +- src/mam.rs | 2 +- src/message.rs | 2 +- src/presence.rs | 2 +- src/roster.rs | 2 +- src/stanza_error.rs | 2 +- src/stanza_id.rs | 2 +- src/stream.rs | 2 +- src/websocket.rs | 2 +- 15 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/bookmarks.rs b/src/bookmarks.rs index b40482c6..c00195a5 100644 --- a/src/bookmarks.rs +++ b/src/bookmarks.rs @@ -77,7 +77,7 @@ mod tests { #[cfg(target_pointer_width = "32")] #[test] fn test_size() { - assert_size!(Conference, 76); + assert_size!(Conference, 64); assert_size!(Url, 24); assert_size!(Storage, 24); } diff --git a/src/delay.rs b/src/delay.rs index 892578c2..e987a4f0 100644 --- a/src/delay.rs +++ b/src/delay.rs @@ -40,7 +40,7 @@ mod tests { #[cfg(target_pointer_width = "32")] #[test] fn test_size() { - assert_size!(Delay, 64); + assert_size!(Delay, 68); } #[cfg(target_pointer_width = "64")] diff --git a/src/disco.rs b/src/disco.rs index 2cacc2a7..abf0e238 100644 --- a/src/disco.rs +++ b/src/disco.rs @@ -243,7 +243,7 @@ mod tests { assert_size!(DiscoInfoQuery, 12); assert_size!(DiscoInfoResult, 48); - assert_size!(Item, 60); + assert_size!(Item, 64); assert_size!(DiscoItemsQuery, 12); assert_size!(DiscoItemsResult, 24); } diff --git a/src/forwarding.rs b/src/forwarding.rs index 906f016e..5286323c 100644 --- a/src/forwarding.rs +++ b/src/forwarding.rs @@ -33,7 +33,7 @@ mod tests { #[cfg(target_pointer_width = "32")] #[test] fn test_size() { - assert_size!(Forwarded, 204); + assert_size!(Forwarded, 212); } #[cfg(target_pointer_width = "64")] diff --git a/src/iq.rs b/src/iq.rs index 68d585d0..c8d62257 100644 --- a/src/iq.rs +++ b/src/iq.rs @@ -225,8 +225,8 @@ mod tests { #[cfg(target_pointer_width = "32")] #[test] fn test_size() { - assert_size!(IqType, 108); - assert_size!(Iq, 192); + assert_size!(IqType, 112); + assert_size!(Iq, 204); } #[cfg(target_pointer_width = "64")] diff --git a/src/jingle.rs b/src/jingle.rs index 14574fdb..98e5fcbb 100644 --- a/src/jingle.rs +++ b/src/jingle.rs @@ -564,7 +564,7 @@ mod tests { assert_size!(Reason, 1); assert_size!(ReasonElement, 16); assert_size!(SessionId, 12); - assert_size!(Jingle, 128); + assert_size!(Jingle, 136); } #[cfg(target_pointer_width = "64")] diff --git a/src/jingle_s5b.rs b/src/jingle_s5b.rs index a34b5e31..969b83f3 100644 --- a/src/jingle_s5b.rs +++ b/src/jingle_s5b.rs @@ -285,7 +285,7 @@ mod tests { assert_size!(Mode, 1); assert_size!(CandidateId, 12); assert_size!(StreamId, 12); - assert_size!(Candidate, 80); + assert_size!(Candidate, 84); assert_size!(TransportPayload, 16); assert_size!(Transport, 44); } diff --git a/src/mam.rs b/src/mam.rs index f0bd0448..6889f2ed 100644 --- a/src/mam.rs +++ b/src/mam.rs @@ -199,7 +199,7 @@ mod tests { fn test_size() { assert_size!(QueryId, 12); assert_size!(Query, 116); - assert_size!(Result_, 228); + assert_size!(Result_, 236); assert_size!(Complete, 1); assert_size!(Fin, 44); assert_size!(DefaultPrefs, 1); diff --git a/src/message.rs b/src/message.rs index fb11e91d..f9bae2b1 100644 --- a/src/message.rs +++ b/src/message.rs @@ -264,7 +264,7 @@ mod tests { assert_size!(Body, 12); assert_size!(Subject, 12); assert_size!(Thread, 12); - assert_size!(Message, 136); + assert_size!(Message, 144); } #[cfg(target_pointer_width = "64")] diff --git a/src/presence.rs b/src/presence.rs index b4e1a1e0..e501f883 100644 --- a/src/presence.rs +++ b/src/presence.rs @@ -368,7 +368,7 @@ mod tests { fn test_size() { assert_size!(Show, 1); assert_size!(Type, 1); - assert_size!(Presence, 112); + assert_size!(Presence, 120); } #[cfg(target_pointer_width = "64")] diff --git a/src/roster.rs b/src/roster.rs index 073ecfa7..6c871ba6 100644 --- a/src/roster.rs +++ b/src/roster.rs @@ -104,7 +104,7 @@ mod tests { assert_size!(Group, 12); assert_size!(Subscription, 1); assert_size!(Ask, 1); - assert_size!(Item, 64); + assert_size!(Item, 52); assert_size!(Roster, 24); } diff --git a/src/stanza_error.rs b/src/stanza_error.rs index 18087baf..db9230eb 100644 --- a/src/stanza_error.rs +++ b/src/stanza_error.rs @@ -316,7 +316,7 @@ mod tests { fn test_size() { assert_size!(ErrorType, 1); assert_size!(DefinedCondition, 1); - assert_size!(StanzaError, 104); + assert_size!(StanzaError, 108); } #[cfg(target_pointer_width = "64")] diff --git a/src/stanza_id.rs b/src/stanza_id.rs index eac29085..bbbfb48f 100644 --- a/src/stanza_id.rs +++ b/src/stanza_id.rs @@ -45,7 +45,7 @@ mod tests { #[cfg(target_pointer_width = "32")] #[test] fn test_size() { - assert_size!(StanzaId, 48); + assert_size!(StanzaId, 52); assert_size!(OriginId, 12); } diff --git a/src/stream.rs b/src/stream.rs index 112f1b94..e6f5be00 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -79,7 +79,7 @@ mod tests { #[cfg(target_pointer_width = "32")] #[test] fn test_size() { - assert_size!(Stream, 108); + assert_size!(Stream, 84); } #[cfg(target_pointer_width = "64")] diff --git a/src/websocket.rs b/src/websocket.rs index d94d81fd..1092423a 100644 --- a/src/websocket.rs +++ b/src/websocket.rs @@ -78,7 +78,7 @@ mod tests { #[cfg(target_pointer_width = "32")] #[test] fn test_size() { - assert_size!(Open, 108); + assert_size!(Open, 84); } #[cfg(target_pointer_width = "64")]