Skip to content

Commit

Permalink
testing: refer to $PWD rather than pwd
Browse files Browse the repository at this point in the history
pwd will resolve symlinks in some cases. This test need to run
regardless of which host os the test is running on. Some hosts /bin is
a symlink ot /urs/bin
  • Loading branch information
anund committed Dec 26, 2024
1 parent 1786ede commit 7aaedd6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Command.zig
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,11 @@ test "Command: custom working directory" {
.cwd = "C:\\Windows\\System32",
} else .{
.path = "/bin/sh",
.args = &.{ "/bin/sh", "-c", "pwd" },
.args = &.{
"/bin/sh",
"-c",
"echo $PWD",
},
.stdout = stdout,
.cwd = "/bin",
};
Expand Down

0 comments on commit 7aaedd6

Please sign in to comment.