aboutsummaryrefslogtreecommitdiffstats
path: root/syz-fuzzer/testing.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-05-15 15:17:16 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-05-17 08:46:55 +0000
commit15846cbccf63a4e74cce5b8cf0c1931fdcf81ccd (patch)
treecc0f7740f5e2a84cf3c842e30bff93e926a00f6a /syz-fuzzer/testing.go
parentdf04197b8da247c029f5966369849c8dd8122398 (diff)
pkg/ipc: use flatrpc flags
Flatrpc flags are passed in RPC execution requests, so to avoid conversions and duplicate set of flags use flatrpc flags in pkg/ipc directly.
Diffstat (limited to 'syz-fuzzer/testing.go')
-rw-r--r--syz-fuzzer/testing.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/syz-fuzzer/testing.go b/syz-fuzzer/testing.go
index 5f5b6dc98..100f63fad 100644
--- a/syz-fuzzer/testing.go
+++ b/syz-fuzzer/testing.go
@@ -10,6 +10,7 @@ import (
"strings"
"time"
+ "github.com/google/syzkaller/pkg/flatrpc"
"github.com/google/syzkaller/pkg/ipc"
"github.com/google/syzkaller/pkg/log"
"github.com/google/syzkaller/pkg/osutil"
@@ -113,7 +114,7 @@ func checkSimpleProgram(args *checkArgs) error {
if info.Calls[0].Errno != 0 {
return fmt.Errorf("simple call failed: %+v\n%s", info.Calls[0], output)
}
- if args.ipcExecOpts.EnvFlags&ipc.FlagSignal != 0 && len(info.Calls[0].Signal) < 2 {
+ if args.ipcExecOpts.EnvFlags&flatrpc.ExecEnvSignal != 0 && len(info.Calls[0].Signal) < 2 {
return fmt.Errorf("got no coverage:\n%s", output)
}
return nil