diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-05-24 16:12:36 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-05-25 11:45:51 +0200 |
| commit | b36c307e4d7a49e7b738ab63576854eb43855e12 (patch) | |
| tree | 830cd4fd60bca3271c19a54186f8ccf28e91b695 /pkg/instance | |
| parent | e5881af751ea9a8409b341a95109823e3ffcedcf (diff) | |
pkg/repro: factor out an interface
Interact with a syz-execprog instance via an additional interface. This
will simplify testing.
Diffstat (limited to 'pkg/instance')
| -rw-r--r-- | pkg/instance/execprog.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/instance/execprog.go b/pkg/instance/execprog.go index 3c54342ac..f325dc040 100644 --- a/pkg/instance/execprog.go +++ b/pkg/instance/execprog.go @@ -183,3 +183,7 @@ func (inst *ExecProgInstance) RunSyzProg(syzProg []byte, duration time.Duration, defer os.Remove(progFile) return inst.RunSyzProgFile(progFile, duration, opts) } + +func (inst *ExecProgInstance) Close() { + inst.VMInstance.Close() +} |
