diff --git a/src/runtime/crash_test.go b/src/runtime/crash_test.go index 7c7532b4e6a..8a48c351f6e 100644 --- a/src/runtime/crash_test.go +++ b/src/runtime/crash_test.go @@ -165,6 +165,11 @@ func checkStaleRuntime(t *testing.T) { } if string(out) != "false\n" { t.Logf("go list -f {{.Stale}} runtime:\n%s", out) + out, err := testEnv(exec.Command(testenv.GoToolPath(t), "list", "-f", "{{.StaleReason}}", "runtime")).CombinedOutput() + if err != nil { + t.Logf("go list -f {{.StaleReason}} failed: %v", err) + } + t.Logf("go list -f {{.StaleReason}} runtime:\n%s", out) staleRuntimeErr = fmt.Errorf("Stale runtime.a. Run 'go install runtime'.") } })