aboutsummaryrefslogtreecommitdiff
path: root/test/cli.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/cli.zig')
-rw-r--r--test/cli.zig9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/cli.zig b/test/cli.zig
index c99c86b008..5df5696919 100644
--- a/test/cli.zig
+++ b/test/cli.zig
@@ -11,18 +11,17 @@ pub fn main() !void {
var arena = std.heap.ArenaAllocator.init(std.testing.allocator);
defer arena.deinit();
- var arg_it = process.args();
+ a = arena.allocator();
+ var arg_it = try process.argsWithAllocator(a);
// skip my own exe name
_ = arg_it.skip();
- a = arena.allocator();
-
- const zig_exe_rel = (try arg_it.next(a)) orelse {
+ const zig_exe_rel = arg_it.next() orelse {
std.debug.print("Expected first argument to be path to zig compiler\n", .{});
return error.InvalidArgs;
};
- const cache_root = (try arg_it.next(a)) orelse {
+ const cache_root = arg_it.next() orelse {
std.debug.print("Expected second argument to be cache root directory path\n", .{});
return error.InvalidArgs;
};