]> Cypherpunks repositories - gostls13.git/commit
runtime: improve TestMemStats checks
authorAustin Clements <austin@google.com>
Fri, 24 Feb 2017 02:48:34 +0000 (21:48 -0500)
committerAustin Clements <austin@google.com>
Fri, 31 Mar 2017 00:46:16 +0000 (00:46 +0000)
commitef1829d1debc0bcd32052d9686adb75704e75984
tree24304e153f946236ad308c9cfba35a41217e93ce
parentbda74b0e4a8eb1acae8c202efd62d298ec3268f0
runtime: improve TestMemStats checks

Now that we have a nice predicate system, improve the tests performed
by TestMemStats. We add some more non-zero checks (now that we force a
GC, things like NumGC must be non-zero), checks for trivial boolean
fields, and a few more range checks.

Change-Id: I6da46d33fa0ce5738407ee57d587825479413171
Reviewed-on: https://go-review.googlesource.com/37513
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/malloc_test.go