diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-05-07 19:11:42 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-05-16 15:38:27 +0000 |
| commit | a10940b81777718365ee7f71495abdc69a32285b (patch) | |
| tree | 415a9d17232b2f7c09c85e7ddffc107500aeee97 /tools/syz-execprog | |
| parent | b6954dce2f21b8feb1448edaaeeefc22f5ff4944 (diff) | |
pkg/runtest: use queue.Request and queue.Result
There's no need to duplicate the execution mechanisms.
Diffstat (limited to 'tools/syz-execprog')
| -rw-r--r-- | tools/syz-execprog/execprog.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go index b246c4263..ad75909eb 100644 --- a/tools/syz-execprog/execprog.go +++ b/tools/syz-execprog/execprog.go @@ -484,14 +484,14 @@ func checkerExecutor(ctx context.Context, source queue.Source, config *ipc.Confi Status: queue.Success, Info: info, Output: output, + Err: err, } if err != nil { res.Status = queue.ExecFailure - res.Error = err.Error() } if hanged && err == nil { res.Status = queue.ExecFailure - res.Error = "hanged" + res.Err = fmt.Errorf("hanged") } req.Done(res) } |
