diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-02-07 12:21:20 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-02-07 12:21:20 -0500 |
| commit | a94304d3e4b9220d2b22501eb2666e5aa89df236 (patch) | |
| tree | a3b85b53581853b62dabf6f763feca099e4fee84 /test/cli.zig | |
| parent | d974afde1d366a28f1b07bff6ebfb5c5756d3b61 (diff) | |
| parent | 2b2bf53a49616192e2b2bdf40b88400964ff1500 (diff) | |
| download | zig-a94304d3e4b9220d2b22501eb2666e5aa89df236.tar.gz zig-a94304d3e4b9220d2b22501eb2666e5aa89df236.zip | |
Merge remote-tracking branch 'origin/master' into llvm8
Diffstat (limited to 'test/cli.zig')
| -rw-r--r-- | test/cli.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cli.zig b/test/cli.zig index 54ef58af79..6ad97415fa 100644 --- a/test/cli.zig +++ b/test/cli.zig @@ -27,9 +27,9 @@ pub fn main() !void { std.debug.warn("Expected second argument to be cache root directory path\n"); return error.InvalidArgs; }); - const zig_exe = try os.path.resolve(a, zig_exe_rel); + const zig_exe = try os.path.resolve(a, [][]const u8{zig_exe_rel}); - const dir_path = try os.path.join(a, cache_root, "clitest"); + const dir_path = try os.path.join(a, [][]const u8{ cache_root, "clitest" }); const TestFn = fn ([]const u8, []const u8) anyerror!void; const test_fns = []TestFn{ testZigInitLib, @@ -99,8 +99,8 @@ fn testZigInitExe(zig_exe: []const u8, dir_path: []const u8) !void { fn testGodboltApi(zig_exe: []const u8, dir_path: []const u8) anyerror!void { if (builtin.os != builtin.Os.linux or builtin.arch != builtin.Arch.x86_64) return; - const example_zig_path = try os.path.join(a, dir_path, "example.zig"); - const example_s_path = try os.path.join(a, dir_path, "example.s"); + const example_zig_path = try os.path.join(a, [][]const u8{ dir_path, "example.zig" }); + const example_s_path = try os.path.join(a, [][]const u8{ dir_path, "example.s" }); try std.io.writeFile(example_zig_path, \\// Type your code here, or load an example. |
