aboutsummaryrefslogtreecommitdiff
path: root/lib/std/testing.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-19 16:42:28 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:11 -0800
commita8088306f6223b07ad9b7ae37486bcc9e0ac08c9 (patch)
tree335a999489c68619b496068062a31e572d262e50 /lib/std/testing.zig
parent6e0c7ed8659d9d60a59a9dcddd3aed9cd18b659b (diff)
downloadzig-a8088306f6223b07ad9b7ae37486bcc9e0ac08c9.tar.gz
zig-a8088306f6223b07ad9b7ae37486bcc9e0ac08c9.zip
std: rename other Dir "make" functions to "create"
Diffstat (limited to 'lib/std/testing.zig')
-rw-r--r--lib/std/testing.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig
index f3dd114af3..5b5ec852e9 100644
--- a/lib/std/testing.zig
+++ b/lib/std/testing.zig
@@ -635,12 +635,12 @@ pub fn tmpDir(opts: Io.Dir.OpenOptions) TmpDir {
_ = std.fs.base64_encoder.encode(&sub_path, &random_bytes);
const cwd = Io.Dir.cwd();
- var cache_dir = cwd.makeOpenPath(io, ".zig-cache", .{}) catch
+ var cache_dir = cwd.createDirPathOpen(io, ".zig-cache", .{}) catch
@panic("unable to make tmp dir for testing: unable to make and open .zig-cache dir");
defer cache_dir.close(io);
- const parent_dir = cache_dir.makeOpenPath(io, "tmp", .{}) catch
+ const parent_dir = cache_dir.createDirPathOpen(io, "tmp", .{}) catch
@panic("unable to make tmp dir for testing: unable to make and open .zig-cache/tmp dir");
- const dir = parent_dir.makeOpenPath(io, &sub_path, .{ .open_options = opts }) catch
+ const dir = parent_dir.createDirPathOpen(io, &sub_path, .{ .open_options = opts }) catch
@panic("unable to make tmp dir for testing: unable to make and open the tmp dir");
return .{