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
This commit is contained in:
Russ Cox 2012-02-12 23:39:40 -05:00
parent 6a75ece01c
commit f735d2d9d3
2 changed files with 9 additions and 19 deletions

View file

@ -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"
)