zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit f20ba7c32c1b06104dd91c0c654ac1d0fc0a9c1e (tree)
parent b61e53cc40869504ea75fcfd90379f7d3048b82d
Author: daurnimator <quae@daurnimator.com>
Date:   Fri, 14 Feb 2020 18:59:25 +1100

std: increase memory available to testing allocator

Diffstat:
Mlib/std/testing.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/testing.zig b/lib/std/testing.zig @@ -12,7 +12,7 @@ pub var allocator_instance = LeakCountAllocator.init(&base_allocator_instance.al pub const failing_allocator = &FailingAllocator.init(&base_allocator_instance.allocator, 0).allocator; pub var base_allocator_instance = std.heap.ThreadSafeFixedBufferAllocator.init(allocator_mem[0..]); -var allocator_mem: [512 * 1024]u8 = undefined; +var allocator_mem: [1024 * 1024]u8 = undefined; /// This function is intended to be used only in tests. It prints diagnostics to stderr /// and then aborts when actual_error_union is not expected_error.