Skip to content

Commit 22a00f2

Browse files
Bryan C. Millsgopherbot
Bryan C. Mills
authored andcommitted
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 <[email protected]> Auto-Submit: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 415e3fd commit 22a00f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/exec/exec_posix_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func TestImplicitPWD(t *testing.T) {
129129
// (We could perhaps refactor helperCommand to use a flag or switch on the
130130
// value of argv[0] instead, but that doesn't seem worth the trouble at
131131
// the moment.)
132-
cmd := exec.Command("pwd")
132+
cmd := exec.Command("pwd", "-L")
133133
cmd.Dir = tc.dir
134134

135135
var pwds []string

0 commit comments

Comments
 (0)