diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-02-07 15:36:00 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-02-07 15:36:00 -0800 |
| commit | bfabb703e32c8bbca3724ee1fa79d565adc1a200 (patch) | |
| tree | 1fb855c3031d131b3a4cf059dadeb1c1a5af7d29 /lib/std/heap.zig | |
| parent | 1754e014f5da09bf83a7ee1e53132325fd78d1c1 (diff) | |
| download | zig-bfabb703e32c8bbca3724ee1fa79d565adc1a200.tar.gz zig-bfabb703e32c8bbca3724ee1fa79d565adc1a200.zip | |
don't try to test SmpAllocator in single threaded mode
Diffstat (limited to 'lib/std/heap.zig')
| -rw-r--r-- | lib/std/heap.zig | 1 |
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); |
