Skip to content

Commit

Permalink
In zerovec, skip check_sizes() test on non-64-bit arches (#5606)
Browse files Browse the repository at this point in the history
Since the expected sizes are based on 64-bit architectures, we need to
either maintain additional expected sizes for 32-bit architectures, or
(as implemented in this commit) just skip this test on architectures
that are not 64-bit.

Fixes #5605.

<!--
Thank you for your pull request to ICU4X!

Reminder: try to use [Conventional
Comments](https://conventionalcomments.org/) to make comments clearer.

Please see
https://github.com/unicode-org/icu4x/blob/main/CONTRIBUTING.md for
general
information on contributing to ICU4X.
-->
  • Loading branch information
musicinmybrain authored Sep 27, 2024
1 parent 7634c7e commit 4b95478
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/zerovec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,8 @@ pub use zerovec_derive::make_ule;
pub use zerovec_derive::make_varule;

#[cfg(test)]
// Expected sizes are based on a 64-bit architecture
#[cfg(target_pointer_width = "64")]
mod tests {
use super::*;
use core::mem::size_of;
Expand Down

0 comments on commit 4b95478

Please sign in to comment.