diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-12-08 18:07:55 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-12-23 22:15:08 -0800 |
| commit | a91c6dc71d42ea59ec53ce4e0ae83e4970731313 (patch) | |
| tree | 815a549f1f16d6c6ce37d6f2d3034c484bb18ca9 /test/src/Cases.zig | |
| parent | 1dcfc8787e86ed94d216976e621a49fc488e8214 (diff) | |
| download | zig-a91c6dc71d42ea59ec53ce4e0ae83e4970731313.tar.gz zig-a91c6dc71d42ea59ec53ce4e0ae83e4970731313.zip | |
test: std.fs.File -> std.Io.File
Diffstat (limited to 'test/src/Cases.zig')
| -rw-r--r-- | test/src/Cases.zig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/src/Cases.zig b/test/src/Cases.zig index b1fece44d9..5889449bbe 100644 --- a/test/src/Cases.zig +++ b/test/src/Cases.zig @@ -1,6 +1,8 @@ const Cases = @This(); const builtin = @import("builtin"); + const std = @import("std"); +const Io = std.Io; const assert = std.debug.assert; const Allocator = std.mem.Allocator; const getExternalExecutor = std.zig.system.getExternalExecutor; @@ -313,7 +315,7 @@ pub fn addCompile( /// Each file should include a test manifest as a contiguous block of comments at /// the end of the file. The first line should be the test type, followed by a set of /// key-value config values, followed by a blank line, then the expected output. -pub fn addFromDir(ctx: *Cases, dir: std.fs.Dir, b: *std.Build) void { +pub fn addFromDir(ctx: *Cases, dir: Io.Dir, b: *std.Build) void { var current_file: []const u8 = "none"; ctx.addFromDirInner(dir, ¤t_file, b) catch |err| { std.debug.panicExtra( @@ -326,7 +328,7 @@ pub fn addFromDir(ctx: *Cases, dir: std.fs.Dir, b: *std.Build) void { fn addFromDirInner( ctx: *Cases, - iterable_dir: std.fs.Dir, + iterable_dir: Io.Dir, /// This is kept up to date with the currently being processed file so /// that if any errors occur the caller knows it happened during this file. current_file: *[]const u8, |
