]> Cypherpunks repositories - gostls13.git/commitdiff
os/exec: in TestImplicitPWD, explicitly request the logical path
authorBryan C. Mills <bcmills@google.com>
Mon, 25 Apr 2022 14:23:45 +0000 (10:23 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 25 Apr 2022 22:33:21 +0000 (22:33 +0000)
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>
src/os/exec/exec_posix_test.go

index a0880c43edcbb0842ab60b0742f1ccf350327503..e58303945338bb2d87a29899b90864aa2bac6c4a 100644 (file)
@@ -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