aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/fuzzer/queue
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-05-07 19:11:42 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-05-16 15:38:27 +0000
commita10940b81777718365ee7f71495abdc69a32285b (patch)
tree415a9d17232b2f7c09c85e7ddffc107500aeee97 /pkg/fuzzer/queue
parentb6954dce2f21b8feb1448edaaeeefc22f5ff4944 (diff)
pkg/runtest: use queue.Request and queue.Result
There's no need to duplicate the execution mechanisms.
Diffstat (limited to 'pkg/fuzzer/queue')
-rw-r--r--pkg/fuzzer/queue/queue.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/fuzzer/queue/queue.go b/pkg/fuzzer/queue/queue.go
index 0c1735243..14d4ace78 100644
--- a/pkg/fuzzer/queue/queue.go
+++ b/pkg/fuzzer/queue/queue.go
@@ -36,6 +36,10 @@ type Request struct {
// This stat will be incremented on request completion.
Stat *stats.Val
+ // Options needed by runtest.
+ BinaryFile string // If set, it's executed instead of Prog.
+ Repeat int // Repeats in addition to the first run.
+
// The callback will be called on request completion in the LIFO order.
// If it returns false, all further processing will be stopped.
// It allows wrappers to intercept Done() requests.
@@ -123,7 +127,7 @@ type Result struct {
Info *ipc.ProgInfo
Output []byte
Status Status
- Error string // More details in case of ExecFailure.
+ Err error // More details in case of ExecFailure.
}
func (r *Result) clone() *Result {