diff options
| author | Russ Cox <rsc@golang.org> | 2015-12-18 11:24:55 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-12-18 20:51:32 +0000 |
| commit | 57337da16995e7dc31da724d0789f2801aa8c959 (patch) | |
| tree | 35c91d2439e16bdd3afe11fd9887d10648484608 /src/runtime/debug/stack_test.go | |
| parent | bb0567b3042fb8003c288ee80eb4782e2e27db63 (diff) | |
| download | go-57337da16995e7dc31da724d0789f2801aa8c959.tar.xz | |
testing: use debug.SetTraceback("all") to show all goroutines at test timeout
Fixes #13681.
Change-Id: I308930f4d9200fbe0f09cd08c38392ca1bb0db67
Reviewed-on: https://go-review.googlesource.com/18044
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/debug/stack_test.go')
| -rw-r--r-- | src/runtime/debug/stack_test.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/runtime/debug/stack_test.go b/src/runtime/debug/stack_test.go index d2a4ea5b37..f54437231b 100644 --- a/src/runtime/debug/stack_test.go +++ b/src/runtime/debug/stack_test.go @@ -2,9 +2,10 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package debug +package debug_test import ( + . "runtime/debug" "strings" "testing" ) @@ -51,9 +52,9 @@ func TestStack(t *testing.T) { } n++ frame("src/runtime/debug/stack.go", "runtime/debug.Stack") - frame("src/runtime/debug/stack_test.go", "runtime/debug.(*T).ptrmethod") - frame("src/runtime/debug/stack_test.go", "runtime/debug.T.method") - frame("src/runtime/debug/stack_test.go", "runtime/debug.TestStack") + frame("src/runtime/debug/stack_test.go", "runtime/debug_test.(*T).ptrmethod") + frame("src/runtime/debug/stack_test.go", "runtime/debug_test.T.method") + frame("src/runtime/debug/stack_test.go", "runtime/debug_test.TestStack") frame("src/testing/testing.go", "") } |
