Skip to content

dlv test does not pass -test.fuzzcachedir= #4236

Description

@Kentzo

What version of Delve are you using (dlv version)?

1.26.0

What version of Go are you using? (go version)?

go1.25.5

What operating system and processor architecture are you using?

darwin/arm64

Description

I'm attempting to debug my fuzz test via:

dlv test . -- -test.parallel=1 -test.fuzzminimizetime=0 -test.fuzz FuzzDSO -test.fuzztime=30s

After dlv starts and I continue, the process exits with error:

(dlv) c
testing: -test.fuzzcachedir must be set if -test.fuzz is set
...

Where -test.fuzzcachedir is an internal option flag:

  -test.fuzzcachedir string
    	directory where interesting fuzzing inputs are stored (for use only by cmd/go)

In order to work around this error I need to manually provide -test.fuzzcachedir:

dlv test . -- -test.parallel=1 -test.fuzzminimizetime=0 -test.fuzz FuzzDSO -test.fuzztime=30s -test.fuzzcachedir=./testdata

Instead, I expect dlv test to figure it out without similarly to how go test does.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions