From 22a00f2b5c56211427530da4bfe0bac1a06fdf7c Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Mon, 25 Apr 2022 10:23:45 -0400 Subject: 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 Auto-Submit: Bryan Mills TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor --- src/os/exec/exec_posix_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf