diff options
| author | kristopher tate <kris.tate+github@gmail.com> | 2018-11-30 01:51:31 +0900 |
|---|---|---|
| committer | kristopher tate <kris.tate+github@gmail.com> | 2018-11-30 03:52:28 +0900 |
| commit | 1e60ca4b752a61e26067b4893be623442836ec6f (patch) | |
| tree | 039a5cbd5080653975d9dd1d25d2faf928b47a6d /src-self-hosted/test.zig | |
| parent | 2b78a90424ee47ee1a9ef590dcf517026d0f13d1 (diff) | |
| download | zig-1e60ca4b752a61e26067b4893be623442836ec6f.tar.gz zig-1e60ca4b752a61e26067b4893be623442836ec6f.zip | |
stage2: update std.os.path.join method signature;
stage2: take 2;
Diffstat (limited to 'src-self-hosted/test.zig')
| -rw-r--r-- | src-self-hosted/test.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-self-hosted/test.zig b/src-self-hosted/test.zig index ff5b96df84..de551cf7f7 100644 --- a/src-self-hosted/test.zig +++ b/src-self-hosted/test.zig @@ -87,7 +87,7 @@ pub const TestContext = struct { ) !void { var file_index_buf: [20]u8 = undefined; const file_index = try std.fmt.bufPrint(file_index_buf[0..], "{}", self.file_index.incr()); - const file1_path = try std.os.path.join(allocator, tmp_dir_name, file_index, file1); + const file1_path = try std.os.path.join(allocator, [][]const u8{ tmp_dir_name, file_index, file1 }); if (std.os.path.dirname(file1_path)) |dirname| { try std.os.makePath(allocator, dirname); @@ -120,7 +120,7 @@ pub const TestContext = struct { ) !void { var file_index_buf: [20]u8 = undefined; const file_index = try std.fmt.bufPrint(file_index_buf[0..], "{}", self.file_index.incr()); - const file1_path = try std.os.path.join(allocator, tmp_dir_name, file_index, file1); + const file1_path = try std.os.path.join(allocator, [][]const u8{ tmp_dir_name, file_index, file1 }); const output_file = try std.fmt.allocPrint(allocator, "{}-out{}", file1_path, Target(Target.Native).exeFileExt()); if (std.os.path.dirname(file1_path)) |dirname| { |
