aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/cgo/internal/testsanitizers/asan_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/cgo/internal/testsanitizers/asan_test.go b/src/cmd/cgo/internal/testsanitizers/asan_test.go
index dd01bd0dc0..cb7d857280 100644
--- a/src/cmd/cgo/internal/testsanitizers/asan_test.go
+++ b/src/cmd/cgo/internal/testsanitizers/asan_test.go
@@ -8,6 +8,7 @@ package sanitizers_test
import (
"bytes"
+ "crypto/fips140"
"fmt"
"internal/platform"
"internal/testenv"
@@ -157,6 +158,10 @@ func mustHaveASAN(t *testing.T) *config {
t.Skipf("skipping on %s/%s; -asan option is not supported.", goos, goarch)
}
+ if fips140.Enabled() {
+ t.Skipf("skipping with FIPS 140 mode; -asan option is not supported.")
+ }
+
// The current implementation is only compatible with the ASan library from version
// v7 to v9 (See the description in src/runtime/asan/asan.go). Therefore, using the
// -asan option must use a compatible version of ASan library, which requires that