Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_non_zero_usize fails on 32 bit architectures #26

Open
davide125 opened this issue Nov 8, 2021 · 1 comment
Open

test_non_zero_usize fails on 32 bit architectures #26

davide125 opened this issue Nov 8, 2021 · 1 comment

Comments

@davide125
Copy link

On armv7hl (but the repro is the same on i686):

$ cargo test
[...]
running 6 tests
test test_non_zero_u16 ... ok
test test_non_zero_u32 ... ok
test test_non_zero_u128 ... ok
test test_non_zero_u8 ... ok
test test_non_zero_usize ... FAILED
test test_non_zero_u64 ... ok

failures:

---- test_non_zero_usize stdout ----
thread 'test_non_zero_usize' panicked at 'assertion failed: `(left == right)`
  left: `"18,446,744,073,709,551,615"`,
 right: `"4,294,967,295"`', num-format/tests/test_non_zero.rs:192:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    test_non_zero_usize

test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
@plugwash
Copy link

I just fixed this in Debian, a patch can be found at https://salsa.debian.org/rust-team/debcargo-conf/-/blob/master/src/num-format/debian/patches/fix-tests-32-bit.diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants