aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-02-07 15:36:00 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-02-07 15:36:00 -0800
commitbfabb703e32c8bbca3724ee1fa79d565adc1a200 (patch)
tree1fb855c3031d131b3a4cf059dadeb1c1a5af7d29
parent1754e014f5da09bf83a7ee1e53132325fd78d1c1 (diff)
downloadzig-bfabb703e32c8bbca3724ee1fa79d565adc1a200.tar.gz
zig-bfabb703e32c8bbca3724ee1fa79d565adc1a200.zip
don't try to test SmpAllocator in single threaded mode
-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);