Commit bfabb703e3

Andrew Kelley <andrew@ziglang.org>
2025-02-08 00:36:00
don't try to test SmpAllocator in single threaded mode
1 parent 1754e01
Changed files (1)
lib
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);