aboutsummaryrefslogtreecommitdiff
path: root/src-self-hosted/test.zig
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2020-01-16 12:21:00 +1000
committerAndrew Kelley <andrew@ziglang.org>2020-03-03 13:25:43 -0500
commit1ca5f06762401d2e90c8119acb4837571696dd5e (patch)
tree156e1e5f40abfc798301f35be792463c8bf5b4fe /src-self-hosted/test.zig
parent695b0976c3757325d4b2043151d267bcc7490f7e (diff)
downloadzig-1ca5f06762401d2e90c8119acb4837571696dd5e.tar.gz
zig-1ca5f06762401d2e90c8119acb4837571696dd5e.zip
Update callers of fs.makePath
Diffstat (limited to 'src-self-hosted/test.zig')
-rw-r--r--src-self-hosted/test.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src-self-hosted/test.zig b/src-self-hosted/test.zig
index 8c322e5fb6..e87164c9fb 100644
--- a/src-self-hosted/test.zig
+++ b/src-self-hosted/test.zig
@@ -56,7 +56,7 @@ pub const TestContext = struct {
self.zig_lib_dir = try introspect.resolveZigLibDir(allocator);
errdefer allocator.free(self.zig_lib_dir);
- try std.fs.makePath(allocator, tmp_dir_name);
+ try std.fs.cwd().makePath(tmp_dir_name);
errdefer std.fs.deleteTree(tmp_dir_name) catch {};
}
@@ -85,7 +85,7 @@ pub const TestContext = struct {
const file1_path = try std.fs.path.join(allocator, [_][]const u8{ tmp_dir_name, file_index, file1 });
if (std.fs.path.dirname(file1_path)) |dirname| {
- try std.fs.makePath(allocator, dirname);
+ try std.fs.cwd().makePath(dirname);
}
// TODO async I/O
@@ -119,7 +119,7 @@ pub const TestContext = struct {
const output_file = try std.fmt.allocPrint(allocator, "{}-out{}", .{ file1_path, (Target{ .Native = {} }).exeFileExt() });
if (std.fs.path.dirname(file1_path)) |dirname| {
- try std.fs.makePath(allocator, dirname);
+ try std.fs.cwd().makePath(dirname);
}
// TODO async I/O