aboutsummaryrefslogtreecommitdiff
path: root/lib/std/testing.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-08 23:14:34 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:09 -0800
commit03526c59d4e2a00f83347cf06c741a3ed4fec520 (patch)
tree42f6f8f29ab7d233ae7f043021f2fdeb16ff3b40 /lib/std/testing.zig
parent5b436d2c5125b9cf9a08b3bff0dcb0248c4d1ec0 (diff)
downloadzig-03526c59d4e2a00f83347cf06c741a3ed4fec520.tar.gz
zig-03526c59d4e2a00f83347cf06c741a3ed4fec520.zip
std.debug: fix printLineFromFile
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 9eb2ad5e96..ab9f1f73c3 100644
--- a/lib/std/testing.zig
+++ b/lib/std/testing.zig
@@ -629,12 +629,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(".zig-cache", .{}) catch
+ var cache_dir = cwd.makeOpenPath(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("tmp", .{}) catch
+ const parent_dir = cache_dir.makeOpenPath(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(&sub_path, opts) catch
+ const dir = parent_dir.makeOpenPath(io, &sub_path, .{ .open_options = opts }) catch
@panic("unable to make tmp dir for testing: unable to make and open the tmp dir");
return .{