mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: disable gc test on non-amd64 systems
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6210062
This commit is contained in:
parent
f5752848fd
commit
283a3ddab8
1 changed files with 5 additions and 0 deletions
|
|
@ -10,6 +10,11 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGcSys(t *testing.T) {
|
func TestGcSys(t *testing.T) {
|
||||||
|
if runtime.GOARCH != "amd64" {
|
||||||
|
// TODO(adg): remove this when precise gc is implemented
|
||||||
|
t.Logf("skipping on non-amd64 systems")
|
||||||
|
return
|
||||||
|
}
|
||||||
memstats := new(runtime.MemStats)
|
memstats := new(runtime.MemStats)
|
||||||
runtime.GC()
|
runtime.GC()
|
||||||
runtime.ReadMemStats(memstats)
|
runtime.ReadMemStats(memstats)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue