From 40edeec57891a01990c1e848de8d3d9eff73b773 Mon Sep 17 00:00:00 2001
From: Anund <anundm@gmail.com>
Date: Fri, 27 Dec 2024 10:34:01 +1100
Subject: [PATCH] testing: force pwd to not resolve symlink

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.
---
 src/Command.zig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Command.zig b/src/Command.zig
index 5cc3dc9459..e9bffe26e0 100644
--- a/src/Command.zig
+++ b/src/Command.zig
@@ -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",
     };