diff options
Diffstat (limited to 'lib/std/testing.zig')
| -rw-r--r-- | lib/std/testing.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig index 8e5a75feb7..8d08792801 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -327,8 +327,8 @@ fn getCwdOrWasiPreopen() std.fs.Dir { defer preopens.deinit(); preopens.populate() catch @panic("unable to make tmp dir for testing: unable to populate preopens"); - const preopen = preopens.find(std.fs.wasi.PreopenType{ .Dir = "/cwd" }) orelse - @panic("unable to make tmp dir for testing: didn't find '/cwd' in the preopens"); + const preopen = preopens.find(std.fs.wasi.PreopenType{ .Dir = "." }) orelse + @panic("unable to make tmp dir for testing: didn't find '.' in the preopens"); return std.fs.Dir{ .fd = preopen.fd }; } else { |
