An HTTP/1.1 server for zig
0

Configure Feed

Select the types of activity you want to include in your feed.

zig17: fix build.zig & SafeAllocator.init()

+3 -5
+1 -3
build.zig
··· 91 91 92 92 const run_cmd = b.addRunArtifact(exe); 93 93 run_cmd.step.dependOn(b.getInstallStep()); 94 - if (b.args) |args| { 95 - run_cmd.addArgs(args); 96 - } 94 + run_cmd.addPassthruArgs(); 97 95 98 96 const run_step = b.step(ex.name, ex.file); 99 97 run_step.dependOn(&run_cmd.step);
+2 -2
test_runner.zig
··· 76 76 }; 77 77 78 78 current_test = friendly_name; 79 - std.testing.allocator_instance = .{}; 79 + std.testing.allocator_instance = .init(init.gpa, .{}); 80 80 const result = t.func(); 81 81 current_test = null; 82 82 83 83 const ns_taken = slowest.endTiming(io, friendly_name); 84 84 85 - if (std.testing.allocator_instance.deinit() == .leak) { 85 + if (std.testing.allocator_instance.deinit() > 0) { 86 86 leak += 1; 87 87 Printer.status(.fail, "\n{s}\n\"{s}\" - Memory Leak\n{s}\n", .{ BORDER, friendly_name, BORDER }); 88 88 }