commit | 9d93d57465909d6c7f0f0021d42143cd70a1b4c4 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Fri Sep 10 15:54:16 2010 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Fri Sep 10 15:54:16 2010 -0700 |
tree | c6921af3cf5d0b14835c138cc4577735830e6789 | |
parent | 8e985dcda6c85863dda7b0e65c6f089383ec8f31 [diff] |
test: Run garbage collector before testing malloc numbers. The gccgo library generates some garbage in the init routines because it handles interfaces slightly differently. Since the test sets MemStats.Alloc to 0, the first time the garbage collector runs it goes negative and the test fails. R=rsc, r2 CC=golang-dev https://golang.org/cl/2110044