]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: TestGcSys: if GOGC=off, skip instead of failing
authorAlbert Strasheim <fullung@gmail.com>
Sat, 30 Mar 2013 22:10:53 +0000 (15:10 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 30 Mar 2013 22:10:53 +0000 (15:10 -0700)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8201043

src/pkg/runtime/gc_test.go

index 3475339bfebf5e72b40c30e47c2428de0806327b..26fc77de11f6885eefd3b8fcca121067e04fac80 100644 (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)