diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-12-16 19:37:13 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-12-16 19:37:38 +0100 |
| commit | d13d795888186e87aeec9ce670986d183036c348 (patch) | |
| tree | ef2374e706ec22cb0ef4dc600ffa666f1e9a61c4 /pkg | |
| parent | f9ae583e77486e70e7f05e66f18b9a1704ad9b80 (diff) | |
tools/syz-runtest: debug all programs in debug mode
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/runtest/run.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/runtest/run.go b/pkg/runtest/run.go index 2b0fb982e..399fb2f49 100644 --- a/pkg/runtest/run.go +++ b/pkg/runtest/run.go @@ -59,6 +59,7 @@ type Context struct { LogFunc func(text string) Retries int // max number of test retries to deal with flaky tests Verbose bool + Debug bool Tests string // prefix to match test file names } @@ -376,6 +377,9 @@ func (ctx *Context) createSyzTest(p *prog.Prog, sandbox string, threaded, cov bo if ctx.Features[host.FeatureDevlinkPCI].Enabled { cfg.Flags |= ipc.FlagEnableDevlinkPCI } + if ctx.Debug { + cfg.Flags |= ipc.FlagDebug + } req := &RunRequest{ P: p, Cfg: cfg, |
