From bfabb703e32c8bbca3724ee1fa79d565adc1a200 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 7 Feb 2025 15:36:00 -0800 Subject: [PATCH] don't try to test SmpAllocator in single threaded mode --- lib/std/heap.zig | 1 + 1 file changed, 1 insertion(+) 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);