"ios/amd64", "ios/arm64",
"aix/ppc64",
"openbsd/arm64",
- "windows/386", "windows/amd64", "windows/arm", "windows/arm64":
+ "windows/386", "windows/amd64", "windows/arm64":
return true
}
return false
// Perhaps the default should be changed back to -buildmode=exe,
// after which we could remove this case, but until then,
// skip FIPS on windows-386.
- //
- // We don't know whether arm works, because it is too hard to get builder
- // time to test it. Disable since it's not important right now.
- if buildcfg.GOOS == "windows" {
- switch buildcfg.GOARCH {
- case "386", "arm":
- return false
- }
+ if buildcfg.GOOS == "windows" && buildcfg.GOARCH == "386" {
+ return false
}
// AIX doesn't just work, and it's not worth fixing.
switch {
case runtime.GOARCH == "wasm",
runtime.GOOS == "windows" && runtime.GOARCH == "386",
- runtime.GOOS == "windows" && runtime.GOARCH == "arm",
runtime.GOOS == "openbsd", // due to -fexecute-only, see #70880
runtime.GOOS == "aix":
return errors.New("FIPS 140-3 mode is not supported on " + runtime.GOOS + "-" + runtime.GOARCH)
if *flagQuick {
t.Skip("-quick")
}
- if runtime.GOARCH == "arm" {
- //TODO: remove this skip and update testwinlib/main.c
- // once windows/arm supports c-shared buildmode.
- // See go.dev/issues/43800.
- t.Skip("this test can't run on windows/arm")
- }
+
testenv.MustHaveGoBuild(t)
testenv.MustHaveCGO(t)
testenv.MustHaveExecPath(t, "gcc")
t.Fatalf("failure while running executable: %s\n%s", err, out)
}
var expectedOutput string
- if runtime.GOARCH == "arm64" || runtime.GOARCH == "arm" {
- // TODO: remove when windows/arm64 and windows/arm support SEH stack unwinding.
+ if runtime.GOARCH == "arm64" {
+ // TODO: remove when windows/arm64 support SEH stack unwinding.
expectedOutput = "exceptionCount: 1\ncontinueCount: 1\nunhandledCount: 0\n"
} else {
expectedOutput = "exceptionCount: 1\ncontinueCount: 1\nunhandledCount: 1\n"