mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/dist: skip fips140test in exe mode on Android
Android does not support non-PIE linking. Skip the test. Change-Id: I53071538c82f1e1f96eed1a2619f92eacd18d263 Reviewed-on: https://go-review.googlesource.com/c/go/+/637495 Run-TryBot: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
87dbfb9fa7
commit
4f0561f9d3
1 changed files with 12 additions and 10 deletions
22
src/cmd/dist/test.go
vendored
22
src/cmd/dist/test.go
vendored
|
|
@ -876,16 +876,18 @@ func (t *tester) registerTests() {
|
|||
}
|
||||
|
||||
if t.extLink() && !t.compileOnly {
|
||||
t.registerTest("external linking, -buildmode=exe",
|
||||
&goTest{
|
||||
variant: "exe_external",
|
||||
timeout: 60 * time.Second,
|
||||
buildmode: "exe",
|
||||
ldflags: "-linkmode=external",
|
||||
env: []string{"CGO_ENABLED=1"},
|
||||
pkg: "crypto/internal/fips140test",
|
||||
runTests: "TestFIPSCheck",
|
||||
})
|
||||
if goos != "android" { // Android does not support non-PIE linking
|
||||
t.registerTest("external linking, -buildmode=exe",
|
||||
&goTest{
|
||||
variant: "exe_external",
|
||||
timeout: 60 * time.Second,
|
||||
buildmode: "exe",
|
||||
ldflags: "-linkmode=external",
|
||||
env: []string{"CGO_ENABLED=1"},
|
||||
pkg: "crypto/internal/fips140test",
|
||||
runTests: "TestFIPSCheck",
|
||||
})
|
||||
}
|
||||
if t.externalLinkPIE() && !disablePIE {
|
||||
t.registerTest("external linking, -buildmode=pie",
|
||||
&goTest{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue