From 7aaedd68c25e31af544d9135f38f647dd57d5a0d Mon Sep 17 00:00:00 2001 From: Anund Date: Fri, 27 Dec 2024 10:34:01 +1100 Subject: [PATCH] testing: refer to $PWD rather than pwd 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 --- src/Command.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Command.zig b/src/Command.zig index 5cc3dc9459..5d4b31561e 100644 --- a/src/Command.zig +++ b/src/Command.zig @@ -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", };