authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-02-14 18:59:25+11:00
committergravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-02-14 18:59:25+11:00
logf20ba7c32c1b06104dd91c0c654ac1d0fc0a9c1e
treecef1e38f291d06496e5fca020d2f986169d5506f
parentb61e53cc40869504ea75fcfd90379f7d3048b82d
signaturelock-open Commit is signed but in an unrecognized format.

std: increase memory available to testing allocator


1 files changed, 1 insertions(+), 1 deletions(-)

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