]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: rename buildmode method to supportedBuildmode
authorIan Lance Taylor <iant@golang.org>
Thu, 30 Apr 2015 00:30:56 +0000 (17:30 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 30 Apr 2015 01:19:22 +0000 (01:19 +0000)
Change-Id: Ie36fd46ad3c0799200fdf4240483a207335570d8
Reviewed-on: https://go-review.googlesource.com/9531
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/dist/test.go

index a50322214b3c768a01fc51baea78168ac153534d..6c52693d5b36e4a7e505c96c3ba4bd771087732d 100644 (file)
@@ -275,13 +275,13 @@ func (t *tester) registerTests() {
                } else if t.hasBash() && t.goos != "android" && !iOS {
                        t.registerTest("testso", "../misc/cgo/testso", "./test.bash")
                }
-               if t.buildmode("c-archive") {
+               if t.supportedBuildmode("c-archive") {
                        t.registerTest("testcarchive", "../misc/cgo/testcarchive", "./test.bash")
                }
-               if t.buildmode("c-shared") {
+               if t.supportedBuildmode("c-shared") {
                        t.registerTest("testcshared", "../misc/cgo/testcshared", "./test.bash")
                }
-               if t.buildmode("shared") {
+               if t.supportedBuildmode("shared") {
                        t.registerTest("testshared", "../misc/cgo/testshared", "./test.bash")
                }
                if t.gohostos == "linux" && t.goarch == "amd64" {
@@ -382,7 +382,7 @@ func (t *tester) extLink() bool {
        return false
 }
 
-func (t *tester) buildmode(mode string) bool {
+func (t *tester) supportedBuildmode(mode string) bool {
        pair := t.goos + "-" + t.goarch
        switch mode {
        case "c-archive":