aboutsummaryrefslogtreecommitdiff
path: root/misc/cgo/testcshared/test.bash
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2016-01-04 15:08:03 -0500
committerRuss Cox <rsc@golang.org>2016-01-05 14:19:24 +0000
commitf2c36df9a2192bf970eaa410655c3e1776580f83 (patch)
treea87fa20cdddbbbf4995ffda2942f32ea1e11089d /misc/cgo/testcshared/test.bash
parent906f97911951c5e33b8290a88a3badc1b328dae8 (diff)
downloadgo-f2c36df9a2192bf970eaa410655c3e1776580f83.tar.xz
misc/cgo/testcshared: print a little more about GOROOT on failure
For #13789. Change-Id: I83973298a35afcf55627f0a72223098306a51f4b Reviewed-on: https://go-review.googlesource.com/18233 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'misc/cgo/testcshared/test.bash')
-rwxr-xr-xmisc/cgo/testcshared/test.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/cgo/testcshared/test.bash b/misc/cgo/testcshared/test.bash
index ac852a007a..4446402ad9 100755
--- a/misc/cgo/testcshared/test.bash
+++ b/misc/cgo/testcshared/test.bash
@@ -19,6 +19,8 @@ goarch=$(go env GOARCH)
goroot=$(go env GOROOT)
if [ ! -d "$goroot" ]; then
echo 'misc/cgo/testcshared/test.bash cannnot find GOROOT' 1>&2
+ echo '$GOROOT:' "$GOROOT" 1>&2
+ echo 'go env GOROOT:' "$goroot" 1>&2
exit 1
fi