]> Cypherpunks repositories - gostls13.git/commit
testing: use runtime/debug to format panics
authorRuss Cox <rsc@golang.org>
Mon, 13 Feb 2012 04:39:40 +0000 (23:39 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 13 Feb 2012 04:39:40 +0000 (23:39 -0500)
commitf735d2d9d3d9665d0e5058615ac6f62e2ba79887
tree93249b4bfde7a0c599bf20198352d05508d1205d
parent6a75ece01c99164d04752f26d58fdfec268d9139
testing: use runtime/debug to format panics

Among other things, this avoids putting a testing.go:nnn:
prefix on every line of the stack trace.

R=golang-dev, r, dsymonds, r
CC=golang-dev
https://golang.org/cl/5651081
src/pkg/runtime/debug/stack_test.go
src/pkg/testing/testing.go