diff options
| author | Russ Cox <rsc@golang.org> | 2010-03-30 10:34:57 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-03-30 10:34:57 -0700 |
| commit | 00f9f0c0560ce35b9d006eacbeeacf897d19a2bf (patch) | |
| tree | d56b07c89674ed7162eb30f924600574d0cf464b /test/mallocrep.go | |
| parent | 5d0ec6c076978846f7cbbf4bd2c0dc55d946b0f9 (diff) | |
| download | go-00f9f0c0560ce35b9d006eacbeeacf897d19a2bf.tar.xz | |
single argument panic
note that sortmain.go has been run through hg gofmt;
only the formatting of the day initializers changed.
i'm happy to revert that formatting if you'd prefer.
stop on error in doc/progs/run
R=r
CC=golang-dev
https://golang.org/cl/850041
Diffstat (limited to 'test/mallocrep.go')
| -rw-r--r-- | test/mallocrep.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/mallocrep.go b/test/mallocrep.go index e7f3f06f4e..2357d83753 100644 --- a/test/mallocrep.go +++ b/test/mallocrep.go @@ -47,7 +47,8 @@ func main() { during := runtime.MemStats.Alloc runtime.Free(b) if a := runtime.MemStats.Alloc; a != 0 { - panic("allocated ", j, ": wrong stats: during=", during, " after=", a, " (want 0)") + println("allocated ", j, ": wrong stats: during=", during, " after=", a, " (want 0)") + panic("fail") } bigger() } |
