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:
parent
ad7aa83020
commit
59ae9d9ac9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user