| author | |
| committer | |
| log | ca4898c0f3590832d7a2ef84e8f4906e89d7f34e |
| tree | 83320bf6654b50b0b03dd1f7a33e123aedf8aa17 |
| parent | 97560cd915008f04addc2c30af087aa89c162b02 |
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>2 files changed, 2 insertions(+), 3 deletions(-)
lib/std/fs/wasi.zig+1-1| ... | ... | @@ -169,7 +169,7 @@ pub const PreopenList = struct { |
| 169 | 169 | }; |
| 170 | 170 | |
| 171 | 171 | test "extracting WASI preopens" { |
| 172 | if (std.builtin.os.tag != .wasi or @import("builtin").link_libc) return error.SkipZigTest; | |
| 172 | if (std.builtin.os.tag != .wasi or std.builtin.link_libc) return error.SkipZigTest; | |
| 173 | 173 | |
| 174 | 174 | var preopens = PreopenList.init(std.testing.allocator); |
| 175 | 175 | defer preopens.deinit(); |
lib/std/testing.zig+1-2| ... | ... | @@ -4,7 +4,6 @@ |
| 4 | 4 | // The MIT license requires this copyright notice to be included in all copies |
| 5 | 5 | // and substantial portions of the software. |
| 6 | 6 | const std = @import("std.zig"); |
| 7 | const builtin = @import("builtin"); | |
| 8 | 7 | |
| 9 | 8 | const math = std.math; |
| 10 | 9 | const print = std.debug.print; |
| ... | ... | @@ -328,7 +327,7 @@ pub const TmpDir = struct { |
| 328 | 327 | }; |
| 329 | 328 | |
| 330 | 329 | fn getCwdOrWasiPreopen() std.fs.Dir { |
| 331 | if (std.builtin.os.tag == .wasi and !builtin.link_libc) { | |
| 330 | if (std.builtin.os.tag == .wasi and !std.builtin.link_libc) { | |
| 332 | 331 | var preopens = std.fs.wasi.PreopenList.init(allocator); |
| 333 | 332 | defer preopens.deinit(); |
| 334 | 333 | preopens.populate() catch |