diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-05-29 10:20:15 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-05-29 10:20:15 -0700 |
| commit | 3b77f1ed7e69e8347e41c2f93dfdfc22f5ac07dd (patch) | |
| tree | 335b4dabfafa222eb5f94befbdb9211d74a7e5cb /lib/std/testing.zig | |
| parent | bdb3b382d8f39ec1e38a72c473963381a065da0c (diff) | |
| download | zig-3b77f1ed7e69e8347e41c2f93dfdfc22f5ac07dd.tar.gz zig-3b77f1ed7e69e8347e41c2f93dfdfc22f5ac07dd.zip | |
rename zig-cache to .zig-cache
closes #20077
Diffstat (limited to 'lib/std/testing.zig')
| -rw-r--r-- | lib/std/testing.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig index 4e895ef3a7..051b6becee 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -563,11 +563,11 @@ pub fn tmpDir(opts: std.fs.Dir.OpenDirOptions) TmpDir { _ = std.fs.base64_encoder.encode(&sub_path, &random_bytes); const cwd = std.fs.cwd(); - var cache_dir = cwd.makeOpenPath("zig-cache", .{}) catch - @panic("unable to make tmp dir for testing: unable to make and open zig-cache dir"); + var cache_dir = cwd.makeOpenPath(".zig-cache", .{}) catch + @panic("unable to make tmp dir for testing: unable to make and open .zig-cache dir"); defer cache_dir.close(); const parent_dir = cache_dir.makeOpenPath("tmp", .{}) catch - @panic("unable to make tmp dir for testing: unable to make and open zig-cache/tmp dir"); + @panic("unable to make tmp dir for testing: unable to make and open .zig-cache/tmp dir"); const dir = parent_dir.makeOpenPath(&sub_path, opts) catch @panic("unable to make tmp dir for testing: unable to make and open the tmp dir"); |
