aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/heap.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/heap.zig b/lib/std/heap.zig
index 290b39b624..b728d0da7e 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);