| ... | @@ -14,12 +14,15 @@ var log_err_count: usize = 0; | ... | @@ -14,12 +14,15 @@ var log_err_count: usize = 0; |
| 14 | var args_buffer: [std.fs.MAX_PATH_BYTES + std.mem.page_size]u8 = undefined; | 14 | var args_buffer: [std.fs.MAX_PATH_BYTES + std.mem.page_size]u8 = undefined; |
| 15 | var args_allocator = std.heap.FixedBufferAllocator.init(&args_buffer); | 15 | var args_allocator = std.heap.FixedBufferAllocator.init(&args_buffer); |
| 16 | | 16 | |
| 17 | pub fn main() anyerror!void { | 17 | fn processArgs() void { |
| 18 | const args = std.process.argsAlloc(&args_allocator.allocator) catch { | 18 | const args = std.process.argsAlloc(&args_allocator.allocator) catch { |
| 19 | @panic("Too many bytes passed over the CLI to the test runner"); | 19 | @panic("Too many bytes passed over the CLI to the test runner"); |
| 20 | }; | 20 | }; |
| 21 | std.testing.zig_exe_path = args[1]; | 21 | std.testing.zig_exe_path = args[1]; |
| | 22 | } |
| 22 | | 23 | |
| | 24 | pub fn main() anyerror!void { |
| | 25 | processArgs(); |
| 23 | const test_fn_list = builtin.test_functions; | 26 | const test_fn_list = builtin.test_functions; |
| 24 | var ok_count: usize = 0; | 27 | var ok_count: usize = 0; |
| 25 | var skip_count: usize = 0; | 28 | var skip_count: usize = 0; |