diff --git a/lib/std/heap.zig b/lib/std/heap.zig index 290b39b6242d4df787b7f6fe229b9cf7b4e5c8d8..b728d0da7e3342b61d9014572cfaa2d58ff7eb36 100644 --- a/lib/std/heap.zig +++ b/lib/std/heap.zig @@ -497,6 +497,7 @@ test raw_c_allocator { } test smp_allocator { + if (builtin.single_threaded) return; try testAllocator(smp_allocator); try testAllocatorAligned(smp_allocator); try testAllocatorLargeAlignment(smp_allocator);