Otherwise, this test may fail when GOROOT/bin is not in $PATH.
Change-Id: Id744f365f6604716207184c9ea49436ab2e3a835
Reviewed-on: https://go-review.googlesource.com/c/go/+/391802
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
stdout 'exclude[/\\]x_linux\.go'
# Test edge cases with gofmt.
-# Note that this execs GOROOT/bin/gofmt.
-! exec gofmt does-not-exist
+! exec $GOROOT/bin/gofmt does-not-exist
-exec gofmt gofmt-dir/no-extension
+exec $GOROOT/bin/gofmt gofmt-dir/no-extension
stdout 'package x'
-exec gofmt gofmt-dir
+exec $GOROOT/bin/gofmt gofmt-dir
! stdout 'package x'
-- exclude/empty/x.txt --