diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-02-13 15:46:50 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-02-13 15:58:42 +0100 |
| commit | 0a49c954ffad8e4a8c64dd8ff730b6ede38003d8 (patch) | |
| tree | 1e3bd22a961c3d192815a2df99a097fea78956e2 /pkg/instance | |
| parent | 0f51729bc4b8b7bdf4767eb88d2c124183639dde (diff) | |
pkg/instance: test coverage during instance testing
Currently we always pass cover=false during instance testing
and as the result covereage is not tested. This can result in
broken images. Pass the actual value of coverage for testing.
Diffstat (limited to 'pkg/instance')
| -rw-r--r-- | pkg/instance/instance.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 64d135429..d5313f417 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -264,7 +264,7 @@ func (inst *inst) testInstance() error { } cmd := FuzzerCmd(fuzzerBin, executorBin, "test", inst.cfg.TargetOS, inst.cfg.TargetArch, fwdAddr, - inst.cfg.Sandbox, 0, 0, false, false, true, false) + inst.cfg.Sandbox, 0, 0, inst.cfg.Cover, false, true, false) outc, errc, err := inst.vm.Run(10*time.Minute, nil, cmd) if err != nil { return fmt.Errorf("failed to run binary in VM: %v", err) |
