From ea48c9d2325dfe3ccd64a2bfeea9516cb5a1d2e3 Mon Sep 17 00:00:00 2001 From: Lynn Boger Date: Tue, 21 Feb 2017 11:28:49 -0500 Subject: [PATCH] runtime: more detail for crash_test.go This updates the testcase to display the timestamps for the runtime.a, it dependent packages atomic.a and sys.a, and source files. Change-Id: Id2901b4e8aa8eb9775c4f404ac01cc07b394ba91 Reviewed-on: https://go-review.googlesource.com/37332 Run-TryBot: Lynn Boger TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- src/runtime/crash_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/runtime/crash_test.go b/src/runtime/crash_test.go index 8a48c351f6..fae2981610 100644 --- a/src/runtime/crash_test.go +++ b/src/runtime/crash_test.go @@ -170,6 +170,9 @@ func checkStaleRuntime(t *testing.T) { t.Logf("go list -f {{.StaleReason}} failed: %v", err) } t.Logf("go list -f {{.StaleReason}} runtime:\n%s", out) + out, err = testEnv(exec.Command("ls", "-lR", "--full-time", runtime.GOROOT())).CombinedOutput() + t.Logf("%s", out) + staleRuntimeErr = fmt.Errorf("Stale runtime.a. Run 'go install runtime'.") } }) -- 2.50.0