]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: more detail for crash_test.go
authorLynn Boger <laboger@linux.vnet.ibm.com>
Tue, 21 Feb 2017 16:28:49 +0000 (11:28 -0500)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Wed, 22 Feb 2017 16:34:14 +0000 (16:34 +0000)
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 <laboger@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/crash_test.go

index 8a48c351f6e65377c7e987bb4a9fc38c78924040..fae2981610748fb4a37baed7aaa72055f0f1ca55 100644 (file)
@@ -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'.")
                }
        })