From: Ian Lance Taylor Date: Thu, 30 Apr 2015 00:30:56 +0000 (-0700) Subject: cmd/dist: rename buildmode method to supportedBuildmode X-Git-Tag: go1.5beta1~821 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=edcc8f9ef1128e0cb70131b4d6f6a06023be5ce8;p=gostls13.git cmd/dist: rename buildmode method to supportedBuildmode Change-Id: Ie36fd46ad3c0799200fdf4240483a207335570d8 Reviewed-on: https://go-review.googlesource.com/9531 Reviewed-by: Brad Fitzpatrick Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index a50322214b..6c52693d5b 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -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":