summaryrefslogtreecommitdiff
path: root/src/crash.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/crash.zig')
-rw-r--r--src/crash.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crash.zig b/src/crash.zig
index 998cc982..26e810ac 100644
--- a/src/crash.zig
+++ b/src/crash.zig
@@ -201,12 +201,12 @@ test "a crash record names the build, appends, and carries the panic message" {
const gpa = std.testing.allocator;
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
- var base_buf: [std.fs.max_path_bytes]u8 = undefined;
+ var base_buf: [std.Io.Dir.max_path_bytes]u8 = undefined;
const base_len = try tmp.dir.realPath(io, &base_buf);
// A directory that does NOT exist yet, which is the case that matters: the
// user who has never written an init file is the likeliest reporter.
- const config_dir = try std.fs.path.join(gpa, &.{ base_buf[0..base_len], "pardes" });
+ const config_dir = try std.Io.Dir.path.join(gpa, &.{ base_buf[0..base_len], "pardes" });
defer gpa.free(config_dir);
const saved_len = dir_len;
defer dir_len = saved_len;
@@ -219,7 +219,7 @@ test "a crash record names the build, appends, and carries the panic message" {
recording.store(false, .seq_cst);
record("second boom");
- const path = try std.fs.path.join(gpa, &.{ config_dir, name });
+ const path = try std.Io.Dir.path.join(gpa, &.{ config_dir, name });
defer gpa.free(path);
const bytes = try std.Io.Dir.cwd().readFileAlloc(io, path, gpa, .limited(1 << 20));
defer gpa.free(bytes);