1
0
mirror of https://github.com/golang/go synced 2024-11-05 14:46:11 -07:00
go/test/chan
Carl Shapiro 1c45f98fa3 test/chan: avoid wrap-around in memstats comparison
The select2.go test assumed that the memory allocated between
its two samplings of runtime.ReadMemStats is strictly
increasing.  To avoid failing the tests when this is not true,
a greater-than check is introduced before computing the
difference in allocated memory.

R=golang-dev, r, cshapiro
CC=golang-dev
https://golang.org/cl/13701046
2013-09-20 17:27:56 -07:00
..
doubleselect.go all: fix typos 2013-06-09 21:50:24 +08:00
fifo.go test/chan: document tests 2012-02-19 17:44:02 +11:00
goroutines.go test/chan: document tests 2012-02-19 17:44:02 +11:00
nonblock.go test/chan: document tests 2012-02-19 17:44:02 +11:00
perm.go test/chan: document tests 2012-02-19 17:44:02 +11:00
powser1.go test/chan: document tests 2012-02-19 17:44:02 +11:00
powser2.go test/chan: document tests 2012-02-19 17:44:02 +11:00
select2.go test/chan: avoid wrap-around in memstats comparison 2013-09-20 17:27:56 -07:00
select3.go test/chan: document tests 2012-02-19 17:44:02 +11:00
select4.go test/chan: document tests 2012-02-19 17:44:02 +11:00
select5.go test: use testlib in a few more cases (part 2) 2012-04-20 23:45:43 +08:00
select6.go test/chan: document tests 2012-02-19 17:44:02 +11:00
select7.go test: use testlib (first 100) 2012-02-16 23:48:57 -05:00
select.go test/chan: document tests 2012-02-19 17:44:02 +11:00
sendstmt.go test: use testlib (first 100) 2012-02-16 23:48:57 -05:00
sieve1.go test/chan: document tests 2012-02-19 17:44:02 +11:00
sieve2.go test/chan: document tests 2012-02-19 17:44:02 +11:00
zerosize.go test/chan: document tests 2012-02-19 17:44:02 +11:00