aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2022-04-25 10:23:45 -0400
committerGopher Robot <gobot@golang.org>2022-04-25 22:33:21 +0000
commit22a00f2b5c56211427530da4bfe0bac1a06fdf7c (patch)
tree52729deb1e3f9303325c0b750b79a945c01c674e
parent415e3fd8a6e62d7e9cf7d0c995518179dc0b7723 (diff)
downloadgo-22a00f2b5c56211427530da4bfe0bac1a06fdf7c.tar.gz
go-22a00f2b5c56211427530da4bfe0bac1a06fdf7c.zip
os/exec: in TestImplicitPWD, explicitly request the logical path
Fixes #52537 Change-Id: I70959881a31f425e940e7adf86b36be2596aafb7 Reviewed-on: https://go-review.googlesource.com/c/go/+/402158 Run-TryBot: Bryan Mills <bcmills@google.com> Auto-Submit: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com>
-rw-r--r--src/os/exec/exec_posix_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/exec/exec_posix_test.go b/src/os/exec/exec_posix_test.go
index a0880c43ed..e583039453 100644
--- a/src/os/exec/exec_posix_test.go
+++ b/src/os/exec/exec_posix_test.go
@@ -129,7 +129,7 @@ func TestImplicitPWD(t *testing.T) {
// (We could perhaps refactor helperCommand to use a flag or switch on the
// value of argv[0] instead, but that doesn't seem worth the trouble at
// the moment.)
- cmd := exec.Command("pwd")
+ cmd := exec.Command("pwd", "-L")
cmd.Dir = tc.dir
var pwds []string