aboutsummaryrefslogtreecommitdiff
path: root/src/internal/fuzz
diff options
context:
space:
mode:
authorAyan George <ayan@ayan.net>2022-01-11 16:37:46 -0500
committerKatie Hockman <katie@golang.org>2022-01-12 19:47:40 +0000
commitf005df8b582658d54e63d59953201299d6fee880 (patch)
tree362fee46a2df19bd0427ae406566274e7eac22ca /src/internal/fuzz
parenta4b6fc7b1ddcec937b605b76068f8e800c1487e2 (diff)
downloadgo-f005df8b582658d54e63d59953201299d6fee880.tar.xz
cmd/go: enable fuzz testing for FreeBSD
Add "freebsd" to GOOS for which sys.FuzzSupported() returns true and add freebsd to the build tags to fuzz test source. Fixes #46554 Change-Id: I5f695ecc8f09c0ab4279ced23b4715b788fcade0 Reviewed-on: https://go-review.googlesource.com/c/go/+/377855 Trust: Bryan Mills <bcmills@google.com> Trust: Katie Hockman <katie@golang.org> Run-TryBot: Katie Hockman <katie@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Katie Hockman <katie@golang.org>
Diffstat (limited to 'src/internal/fuzz')
-rw-r--r--src/internal/fuzz/minimize_test.go2
-rw-r--r--src/internal/fuzz/sys_posix.go2
-rw-r--r--src/internal/fuzz/sys_unimplemented.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/internal/fuzz/minimize_test.go b/src/internal/fuzz/minimize_test.go
index 6e5f3184b4..2db2633896 100644
--- a/src/internal/fuzz/minimize_test.go
+++ b/src/internal/fuzz/minimize_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build darwin || linux || windows
+//go:build darwin || freebsd || linux || windows
package fuzz
diff --git a/src/internal/fuzz/sys_posix.go b/src/internal/fuzz/sys_posix.go
index 89c86c1ebb..fec6054f67 100644
--- a/src/internal/fuzz/sys_posix.go
+++ b/src/internal/fuzz/sys_posix.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build darwin || linux
+//go:build darwin || freebsd || linux
package fuzz
diff --git a/src/internal/fuzz/sys_unimplemented.go b/src/internal/fuzz/sys_unimplemented.go
index 123a32583c..f84dae6a61 100644
--- a/src/internal/fuzz/sys_unimplemented.go
+++ b/src/internal/fuzz/sys_unimplemented.go
@@ -4,7 +4,7 @@
// If you update this constraint, also update cmd/internal/sys.FuzzSupported.
//
-//go:build !darwin && !linux && !windows
+//go:build !darwin && !freebsd && !linux && !windows
package fuzz