aboutsummaryrefslogtreecommitdiff
path: root/test/cli.zig
diff options
context:
space:
mode:
authorkristopher tate <kris.tate+github@gmail.com>2018-11-30 00:37:01 +0900
committerkristopher tate <kris.tate+github@gmail.com>2018-11-30 03:52:27 +0900
commit2b78a90424ee47ee1a9ef590dcf517026d0f13d1 (patch)
tree3ac725d29461fafd3076fca688cd6fa78928564a /test/cli.zig
parent53766e7a3a5c7141a64e21c30540f9ed571cdfdd (diff)
downloadzig-2b78a90424ee47ee1a9ef590dcf517026d0f13d1.tar.gz
zig-2b78a90424ee47ee1a9ef590dcf517026d0f13d1.zip
std.os.path: remove dependance on std.mem.join;
std/os/child_process.zig: windows test/cli.zig: godbolt; doc/docgen.zig
Diffstat (limited to 'test/cli.zig')
-rw-r--r--test/cli.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cli.zig b/test/cli.zig
index a07c447d2d..0980e8c2d8 100644
--- a/test/cli.zig
+++ b/test/cli.zig
@@ -29,7 +29,7 @@ pub fn main() !void {
});
const zig_exe = try os.path.resolve(a, 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.