From edcc8f9ef1128e0cb70131b4d6f6a06023be5ce8 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 29 Apr 2015 17:30:56 -0700 Subject: [PATCH] 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 --- src/cmd/dist/test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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": -- 2.50.0