Skip to content

test_size fails on 32-bit. #330

@plugwash

Description

@plugwash

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions