aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2017-02-13 11:46:48 -0800
committerIan Lance Taylor <iant@golang.org>2017-02-13 20:00:05 +0000
commit40c27ed5bc9297718809e00e3158967414aa9ee5 (patch)
tree5a7b21dbf86775e9cb17ce158f698460c5a1d32d /src/runtime
parent5a303aa1e96b669051a18bdc44465396a45037ea (diff)
downloadgo-40c27ed5bc9297718809e00e3158967414aa9ee5.tar.xz
runtime: if runtime is stale while testing, show cmd/go output
Update #19062. Change-Id: If6a4c4f8d12e148b162256f13a8ee423f6e30637 Reviewed-on: https://go-review.googlesource.com/36918 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/crash_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/crash_test.go b/src/runtime/crash_test.go
index 9ec0ae468b..7c7532b4e6 100644
--- a/src/runtime/crash_test.go
+++ b/src/runtime/crash_test.go
@@ -164,6 +164,7 @@ func checkStaleRuntime(t *testing.T) {
return
}
if string(out) != "false\n" {
+ t.Logf("go list -f {{.Stale}} runtime:\n%s", out)
staleRuntimeErr = fmt.Errorf("Stale runtime.a. Run 'go install runtime'.")
}
})