]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: if runtime is stale while testing, show cmd/go output
authorIan Lance Taylor <iant@golang.org>
Mon, 13 Feb 2017 19:46:48 +0000 (11:46 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 13 Feb 2017 20:00:05 +0000 (20:00 +0000)
Update #19062.

Change-Id: If6a4c4f8d12e148b162256f13a8ee423f6e30637
Reviewed-on: https://go-review.googlesource.com/36918
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/crash_test.go

index 9ec0ae468b755db516e9a46e141f6831a1b73b6c..7c7532b4e6abb2025b24f4f1e7ca4485038879fc 100644 (file)
@@ -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'.")
                }
        })