Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version
$ go version go version go1.18 linux/amd64
Yes.
go env
$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/e/.cache/go-build" GOENV="/home/e/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/e/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/e/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/nix/store/h2w6bc9dpcfvr76cfz8ymv7l5llfjjsj-go-1.18/share/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/nix/store/h2w6bc9dpcfvr76cfz8ymv7l5llfjjsj-go-1.18/share/go/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.18" GCCGO="gccgo" GOAMD64="v1" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/home/e/Downloads/fuzzcount/go.mod" GOWORK="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1871101059=/tmp/go-build -gno-record-gcc-switches"
$ cat fuzzcount_test.go package fuzzcount import "testing" func TestA(t *testing.T) { t.Logf("TestA: ran") } func FuzzA(f *testing.F) { f.Add([]byte("test")) f.Fuzz(func(t *testing.T, _ []byte) { t.Logf("FuzzA: ran") }) } $ go mod init fuzzcount $ go test -count 5 -v . === RUN TestA fuzzcount_test.go:6: TestA: ran --- PASS: TestA (0.00s) === RUN TestA fuzzcount_test.go:6: TestA: ran --- PASS: TestA (0.00s) === RUN TestA fuzzcount_test.go:6: TestA: ran --- PASS: TestA (0.00s) === RUN TestA fuzzcount_test.go:6: TestA: ran --- PASS: TestA (0.00s) === RUN TestA fuzzcount_test.go:6: TestA: ran --- PASS: TestA (0.00s) === RUN FuzzA === RUN FuzzA/seed#0 fuzzcount_test.go:12: FuzzA: ran --- PASS: FuzzA (0.00s) --- PASS: FuzzA/seed#0 (0.00s) PASS ok fuzzcount 0.001s
5 instances of FuzzA: ran.
FuzzA: ran
Only one instance of FuzzA: ran.
Specifying -count XX to go test is for repeating test runs XX times; I'd expect the same behaviour for tests implied by a fuzz target corpus.
-count XX
go test
The text was updated successfully, but these errors were encountered:
(attn @golang/fuzzing)
Sorry, something went wrong.
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
5 instances of
FuzzA: ran
.What did you see instead?
Only one instance of
FuzzA: ran
.Specifying
-count XX
togo test
is for repeating test runs XX times; I'd expect the same behaviour for tests implied by a fuzz target corpus.The text was updated successfully, but these errors were encountered: