Skip to content

Commit

Permalink
testing: force pwd to not resolve symlink
Browse files Browse the repository at this point in the history
Looking for a ~universal command that will succeed regardless which
system this test is run on. pwd will resolve symlinks by default in some
cases.
  • Loading branch information
anund committed Dec 26, 2024
1 parent 1786ede commit 40edeec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command.zig
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ test "Command: custom working directory" {
.cwd = "C:\\Windows\\System32",
} else .{
.path = "/bin/sh",
.args = &.{ "/bin/sh", "-c", "pwd" },
.args = &.{ "/bin/sh", "-c", "pwd", "-L" },
.stdout = stdout,
.cwd = "/bin",
};
Expand Down

0 comments on commit 40edeec

Please sign in to comment.