Skip to content

testing: parallel fuzzing hangs with -parallel=1 #50217

@AlekSi

Description

@AlekSi
go version devel go1.18-7f2314530e Thu Dec 16 00:34:10 2021 +0000 darwin/arm64

The following test hangs when run with go test -parallel=1:

func FuzzParallel(f *testing.F) {
	f.Add(42)

	f.Fuzz(func(t *testing.T, i int) {
		t.Parallel()
	})
}

It works with -parallel=2 and other values. I think it should work in any case.

Small self-contained example is there: https://github.com/AlekSi/go-bug/tree/master/50217

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.fuzzIssues related to native fuzzing support

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions