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_size fails on 32-bit. #330

Open
plugwash opened this issue Nov 28, 2023 · 0 comments
Open

test_size fails on 32-bit. #330

plugwash opened this issue Nov 28, 2023 · 0 comments

Comments

@plugwash
Copy link

Debian CI has noticed that test_size in smallvec 1.x (the test does not seem to exist on smallvec 2.x) fails on 32-bit.

With "union" feature enabled.

---- tests::test_size stdout ----
thread 'tests::test_size' panicked at 'assertion failed: `(left == right)`
  left: `24`,
 right: `12`', src/tests.rs:990:5

Without "union" feature enabled.

---- tests::test_size stdout ----
thread 'tests::test_size' panicked at 'assertion failed: `(left == right)`
   left: `24`,
  right: `16`', src/tests.rs:990:5

I applied a patch in Debian to make 24 a maximum value rather than an exact value.

https://salsa.debian.org/rust-team/debcargo-conf/-/blob/master/src/smallvec/debian/patches/fix-test-32-bit.patch

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

1 participant