Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(795)

Issue 5651081: code review 5651081: testing: do not squelch panics (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 4 months ago by rsc
Modified:
13 years, 4 months ago
Reviewers:
CC:
golang-dev, r2, dsymonds, r
Visibility:
Public.

Description

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.

Patch Set 1 #

Patch Set 2 : diff -r 4a0c77722a5e https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 8296cf56b8c1 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 2646dc956207 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 2646dc956207 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -17 lines) Patch
M src/pkg/runtime/debug/stack_test.go View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/pkg/testing/testing.go View 1 2 3 3 chunks +3 lines, -16 lines 0 comments Download

Messages

Total messages: 11
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 4 months ago (2012-02-13 03:32:39 UTC) #1
r2
i don't understand the purpose of this change. -rob
13 years, 4 months ago (2012-02-13 03:40:13 UTC) #2
dsymonds
On Mon, Feb 13, 2012 at 2:40 PM, Rob 'Commander' Pike <r@google.com> wrote: > i ...
13 years, 4 months ago (2012-02-13 03:42:36 UTC) #3
rsc
On Sun, Feb 12, 2012 at 22:40, Rob 'Commander' Pike <r@google.com> wrote: > i don't ...
13 years, 4 months ago (2012-02-13 04:18:58 UTC) #4
r2
i leave this to you. the panics were caught when people wanted them caught. they ...
13 years, 4 months ago (2012-02-13 04:22:23 UTC) #5
dsymonds
On Mon, Feb 13, 2012 at 3:18 PM, Russ Cox <rsc@golang.org> wrote: > On Sun, ...
13 years, 4 months ago (2012-02-13 04:24:58 UTC) #6
dsymonds
On Mon, Feb 13, 2012 at 3:24 PM, David Symonds <dsymonds@golang.org> wrote: > Worse, it ...
13 years, 4 months ago (2012-02-13 04:29:28 UTC) #7
rsc
PTAL I put the recover back for now, but I left the use of runtime/debug. ...
13 years, 4 months ago (2012-02-13 04:36:03 UTC) #8
r
LGTM but officially annoyed by new dependency
13 years, 4 months ago (2012-02-13 04:37:55 UTC) #9
dsymonds
LGTM okay
13 years, 4 months ago (2012-02-13 04:38:49 UTC) #10
rsc
13 years, 4 months ago (2012-02-13 04:39:43 UTC) #11
*** Submitted as http://code.google.com/p/go/source/detail?r=1a565b406af7 ***

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
http://codereview.appspot.com/5651081
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b