mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
std.os tests: improve robustness of "symlink with relative paths"
This commit is contained in:
parent
d159ba9295
commit
cf4936bcb0
@ -112,8 +112,11 @@ test "openat smoke test" {
|
||||
test "symlink with relative paths" {
|
||||
if (builtin.os.tag == .wasi) return error.SkipZigTest;
|
||||
|
||||
const cwd = fs.cwd();
|
||||
cwd.deleteFile("file.txt") catch {};
|
||||
cwd.deleteFile("symlinked") catch {};
|
||||
|
||||
// First, try relative paths in cwd
|
||||
var cwd = fs.cwd();
|
||||
try cwd.writeFile("file.txt", "nonsense");
|
||||
|
||||
if (builtin.os.tag == .windows) {
|
||||
|
Loading…
Reference in New Issue
Block a user