1
0
mirror of https://github.com/golang/go synced 2024-11-13 17:50:23 -07:00

runtime: TestGcSys: if GOGC=off, skip instead of failing

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8201043
This commit is contained in:
Albert Strasheim 2013-03-30 15:10:53 -07:00 committed by Brad Fitzpatrick
parent ad7aa83020
commit 59ae9d9ac9

View File

@ -13,7 +13,7 @@ import (
func TestGcSys(t *testing.T) {
if os.Getenv("GOGC") == "off" {
t.Fatalf("GOGC=off in environment; test cannot pass")
t.Skip("skipping test; GOGC=off in environment")
}
data := struct{ Short bool }{testing.Short()}
got := executeTest(t, testGCSysSource, &data)