Skip to content

Commit 486c084

Browse files
committed
allocator::c::Malloc: fix CI for Linux / OS X (forgot to validate size checks on non-Windows)
1 parent e9352e3 commit 486c084

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/allocator/c/malloc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ unsafe impl thin::SizeOfDebug for Malloc {
238238
#[test] fn thin_alignment() { thin::test::alignment(AllocZst(Malloc)) }
239239
#[test] fn thin_edge_case_sizes() { thin::test::edge_case_sizes(AllocZst(Malloc)) }
240240
#[test] fn thin_nullable() { thin::test::nullable(AllocZst(Malloc)) }
241-
#[test] fn thin_size() { thin::test::size_exact_alloc_except_zsts(AllocZst(Malloc)) }
241+
#[cfg( target_env = "msvc" )] #[test] fn thin_size_msvc() { thin::test::size_exact_alloc_except_zsts(Malloc) }
242+
#[cfg(not(target_env = "msvc"))] #[test] fn thin_size() { thin::test::size_exact_alloc(Malloc) }
242243
#[test] fn thin_uninit() { if !MALLOC_ZERO_INITS { unsafe { thin::test::uninit_alloc_unsound(AllocZst(Malloc)) } } }
243244
#[test] fn thin_uninit_realloc() { thin::test::uninit_realloc(AllocZst(Malloc)) }
244245
#[test] fn thin_zeroed() { thin::test::zeroed_alloc(AllocZst(Malloc)) }

0 commit comments

Comments
 (0)