]> Cypherpunks repositories - gostls13.git/commit
runtime/debug: expand SetGCPercent test
authorAustin Clements <austin@google.com>
Thu, 6 Apr 2017 19:17:18 +0000 (15:17 -0400)
committerAustin Clements <austin@google.com>
Fri, 21 Apr 2017 17:42:01 +0000 (17:42 +0000)
commitd9308cbb516fc581ff7c7f77781d51604be44da6
treee32dc1555bc9b23e2dca8501f506491dac7795f4
parent1c4f3c5ea0267e8ebc990ee67c09efa01cb59746
runtime/debug: expand SetGCPercent test

The current SetGCPercent test is, shall we say, minimal.

Expand it to check that the GC target is actually computed and updated
correctly.

For #19076.

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