aboutsummaryrefslogtreecommitdiff
path: root/test/mallocfin.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-03-30 10:34:57 -0700
committerRuss Cox <rsc@golang.org>2010-03-30 10:34:57 -0700
commit00f9f0c0560ce35b9d006eacbeeacf897d19a2bf (patch)
treed56b07c89674ed7162eb30f924600574d0cf464b /test/mallocfin.go
parent5d0ec6c076978846f7cbbf4bd2c0dc55d946b0f9 (diff)
downloadgo-00f9f0c0560ce35b9d006eacbeeacf897d19a2bf.tar.gz
go-00f9f0c0560ce35b9d006eacbeeacf897d19a2bf.zip
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/mallocfin.go')
-rw-r--r--test/mallocfin.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/mallocfin.go b/test/mallocfin.go
index 44229d490c..dc6d74bad6 100644
--- a/test/mallocfin.go
+++ b/test/mallocfin.go
@@ -58,9 +58,10 @@ func main() {
for i := 0; i < N; i++ {
runtime.GC()
runtime.Gosched()
- time.Sleep(1e6);
+ time.Sleep(1e6)
}
if nfinal < N*8/10 {
- panic("not enough finalizing:", nfinal, "/", N)
+ println("not enough finalizing:", nfinal, "/", N)
+ panic("fail")
}
}