commit bfabb703e32c8bbca3724ee1fa79d565adc1a200 (tree)
parent 1754e014f5da09bf83a7ee1e53132325fd78d1c1
Author: Andrew Kelley <andrew@ziglang.org>
Date: Fri, 7 Feb 2025 15:36:00 -0800
don't try to test SmpAllocator in single threaded mode
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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);