aboutsummaryrefslogtreecommitdiff
path: root/lib/std/testing.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-07-08 21:03:28 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-07-08 21:03:28 -0700
commita489ea0b2f38c67025c2b2424749a9a7320cdd5a (patch)
treeb27dffca9c3c26ef8cb33776dfbdf1941e7f6e55 /lib/std/testing.zig
parent0e1c7209e8632ebf398e60de9053e2e0fe8b5661 (diff)
parentbf56cdd9edffd5b97d2084b46cda6e6a89a391c1 (diff)
downloadzig-a489ea0b2f38c67025c2b2424749a9a7320cdd5a.tar.gz
zig-a489ea0b2f38c67025c2b2424749a9a7320cdd5a.zip
Merge branch 'register-allocation'
Diffstat (limited to 'lib/std/testing.zig')
-rw-r--r--lib/std/testing.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig
index 670d8fd5d6..bdaf759d62 100644
--- a/lib/std/testing.zig
+++ b/lib/std/testing.zig
@@ -14,6 +14,9 @@ pub var failing_allocator_instance = FailingAllocator.init(&base_allocator_insta
pub var base_allocator_instance = std.mem.validationWrap(std.heap.ThreadSafeFixedBufferAllocator.init(allocator_mem[0..]));
var allocator_mem: [2 * 1024 * 1024]u8 = undefined;
+/// TODO https://github.com/ziglang/zig/issues/5738
+pub var log_level = std.log.Level.warn;
+
/// 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.
pub fn expectError(expected_error: anyerror, actual_error_union: var) void {