mirror of https://github.com/golang/go.git
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>
This commit is contained in:
parent
a4b6fc7b1d
commit
f005df8b58
|
|
@ -50,7 +50,7 @@ func ASanSupported(goos, goarch string) bool {
|
|||
// ('go test -fuzz=.').
|
||||
func FuzzSupported(goos, goarch string) bool {
|
||||
switch goos {
|
||||
case "darwin", "linux", "windows":
|
||||
case "darwin", "freebsd", "linux", "windows":
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue