| ... | @@ -24,20 +24,13 @@ | ... | @@ -24,20 +24,13 @@ |
| 24 | //! | 24 | //! |
| 25 | //! With these transformations, the test harness can safely do string comparisons. | 25 | //! With these transformations, the test harness can safely do string comparisons. |
| 26 | | 26 | |
| 27 | pub fn main() !void { | 27 | pub fn main(init: std.process.Init) !void { |
| 28 | var arena_instance: std.heap.ArenaAllocator = .init(std.heap.page_allocator); | 28 | const arena = init.arena.allocator(); |
| 29 | defer arena_instance.deinit(); | 29 | const io = init.io; |
| 30 | const arena = arena_instance.allocator(); | 30 | const args = try init.minimal.args.toSlice(arena); |
| 31 | | 31 | |
| 32 | const args = try std.process.argsAlloc(arena); | | |
| 33 | if (args.len != 2) std.process.fatal("usage: convert-stack-trace path/to/test/output", .{}); | 32 | if (args.len != 2) std.process.fatal("usage: convert-stack-trace path/to/test/output", .{}); |
| 34 | | 33 | |
| 35 | const gpa = arena; | | |
| 36 | | | |
| 37 | var threaded: std.Io.Threaded = .init(gpa, .{}); | | |
| 38 | defer threaded.deinit(); | | |
| 39 | const io = threaded.io(); | | |
| 40 | | | |
| 41 | var read_buf: [1024]u8 = undefined; | 34 | var read_buf: [1024]u8 = undefined; |
| 42 | var write_buf: [1024]u8 = undefined; | 35 | var write_buf: [1024]u8 = undefined; |
| 43 | | 36 | |