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:
Cherry Mui 2024-12-18 11:28:18 -05:00
parent 87dbfb9fa7
commit 4f0561f9d3

View file

@ -876,6 +876,7 @@ func (t *tester) registerTests() {
} }
if t.extLink() && !t.compileOnly { if t.extLink() && !t.compileOnly {
if goos != "android" { // Android does not support non-PIE linking
t.registerTest("external linking, -buildmode=exe", t.registerTest("external linking, -buildmode=exe",
&goTest{ &goTest{
variant: "exe_external", variant: "exe_external",
@ -886,6 +887,7 @@ func (t *tester) registerTests() {
pkg: "crypto/internal/fips140test", pkg: "crypto/internal/fips140test",
runTests: "TestFIPSCheck", runTests: "TestFIPSCheck",
}) })
}
if t.externalLinkPIE() && !disablePIE { if t.externalLinkPIE() && !disablePIE {
t.registerTest("external linking, -buildmode=pie", t.registerTest("external linking, -buildmode=pie",
&goTest{ &goTest{