test(allocator): fix test on 32 bit platforms#20977
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull request overview
Fixes an allocator unit test that was failing on 32-bit targets by making the ChunkFooter size assertion architecture-aware, aligning the test with the actual ChunkFooter layout/padding on different pointer widths.
Changes:
- Split
ChunkFootersize assertion into two#[cfg(target_pointer_width = "...")]tests. - Updated test names to reflect the expected word counts on 64-bit vs 32-bit platforms.
Merging this PR will not alter performance
Comparing Footnotes
|

#20963 had a test failing on 32-bit platforms. Fix it.