diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-05-15 15:17:16 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-05-17 08:46:55 +0000 |
| commit | 15846cbccf63a4e74cce5b8cf0c1931fdcf81ccd (patch) | |
| tree | cc0f7740f5e2a84cf3c842e30bff93e926a00f6a /pkg/ipc/ipc_test.go | |
| parent | df04197b8da247c029f5966369849c8dd8122398 (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 'pkg/ipc/ipc_test.go')
| -rw-r--r-- | pkg/ipc/ipc_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/ipc/ipc_test.go b/pkg/ipc/ipc_test.go index af4eaf24a..30e97660f 100644 --- a/pkg/ipc/ipc_test.go +++ b/pkg/ipc/ipc_test.go @@ -12,6 +12,7 @@ import ( "time" "github.com/google/syzkaller/pkg/csource" + "github.com/google/syzkaller/pkg/flatrpc" "github.com/google/syzkaller/pkg/image" . "github.com/google/syzkaller/pkg/ipc" "github.com/google/syzkaller/pkg/ipc/ipcconfig" @@ -80,7 +81,7 @@ func TestExecute(t *testing.T) { bin := csource.BuildExecutor(t, target, "../..") - flags := []ExecFlags{0, FlagThreaded} + flags := []flatrpc.ExecFlag{0, flatrpc.ExecFlagThreaded} for _, flag := range flags { t.Logf("testing flags 0x%x", flag) cfg := &Config{ @@ -189,7 +190,7 @@ func TestZlib(t *testing.T) { if err != nil { t.Fatal(err) } - opts.EnvFlags |= FlagDebug + opts.EnvFlags |= flatrpc.ExecEnvDebug cfg.Executor = csource.BuildExecutor(t, target, "../..") env, err := MakeEnv(cfg, 0) if err != nil { @@ -247,7 +248,7 @@ func TestExecutorCommonExt(t *testing.T) { t.Fatal(err) } cfg.Executor = bin - opts.EnvFlags |= FlagDebug + opts.EnvFlags |= flatrpc.ExecEnvDebug env, err := MakeEnv(cfg, 0) if err != nil { t.Fatalf("failed to create env: %v", err) |
