]> Cypherpunks repositories - gostls13.git/commit
cmd/go: disallow profile flags when using -fuzz
authorRoland Shoemaker <roland@golang.org>
Mon, 1 Nov 2021 17:28:52 +0000 (10:28 -0700)
committerRoland Shoemaker <roland@golang.org>
Tue, 2 Nov 2021 18:01:20 +0000 (18:01 +0000)
commit629ffebd451613b32e6b9578ff4c807791197b38
tree32ab2b8caeaccca268c8f4835966b13662d399cc
parent4ec52e363e93baa859cbdec23f997a489cfeca11
cmd/go: disallow profile flags when using -fuzz

Disallow the usage of coverprofile, blockprofile, cpuprofile, memprofile,
mutexprofile, and trace when fuzzing, since these currently do not work
as the user would expect.

Fixes #48178

Change-Id: Ibe6dfaef9b28a91c60c26fcad38c33a2a959d869
Reviewed-on: https://go-review.googlesource.com/c/go/+/360395
Trust: Roland Shoemaker <roland@golang.org>
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/internal/test/test.go
src/cmd/go/testdata/script/test_fuzz_profile_flags.txt [new file with mode: 0644]