| author | |
| committer | |
| log | 28639bd6d741ca96f384d85bbf40331664197068 |
| tree | d799ba64d8f0bc736282609228815f9be038811c |
| parent | b0691df5ba898c8f6ac2c03e19e312502a2a0cc5 |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/testing.zig+1-1| ... | ... | @@ -31,7 +31,7 @@ pub var allocator_instance: std.heap.GeneralPurposeAllocator(.{ |
| 31 | 31 | }; |
| 32 | 32 | |
| 33 | 33 | pub var io_instance: Io.Threaded = undefined; |
| 34 | pub const io = io_instance.io(); | |
| 34 | pub const io = if (builtin.is_test) io_instance.io() else @compileError("not testing"); | |
| 35 | 35 | |
| 36 | 36 | /// TODO https://github.com/ziglang/zig/issues/5738 |
| 37 | 37 | pub var log_level = std.log.Level.warn; |