diff options
Diffstat (limited to 'pkg/ipc')
| -rw-r--r-- | pkg/ipc/ipc.go | 2 | ||||
| -rw-r--r-- | pkg/ipc/ipc_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/ipc/ipc.go b/pkg/ipc/ipc.go index ffa8a4e6f..06b39af9d 100644 --- a/pkg/ipc/ipc.go +++ b/pkg/ipc/ipc.go @@ -268,7 +268,7 @@ func (env *Env) Exec(opts *ExecOpts, p *prog.Prog) (output []byte, info *ProgInf atomic.AddUint64(&env.StatExecs, 1) if env.cmd == nil { - if p.Target.OS != "test" && targets.Get(p.Target.OS, p.Target.Arch).HostFuzzer { + if p.Target.OS != targets.TestOS && targets.Get(p.Target.OS, p.Target.Arch).HostFuzzer { // The executor is actually ssh, // starting them too frequently leads to timeouts. <-rateLimit.C diff --git a/pkg/ipc/ipc_test.go b/pkg/ipc/ipc_test.go index c8210cdcd..e7c9aa0f8 100644 --- a/pkg/ipc/ipc_test.go +++ b/pkg/ipc/ipc_test.go @@ -73,7 +73,7 @@ func TestExecutor(t *testing.T) { bin := buildExecutor(t, target) defer os.Remove(bin) // qemu-user may allow us to run some cross-arch binaries. - if _, err := osutil.RunCmd(time.Minute, "", bin, "test"); err != nil { + if _, err := osutil.RunCmd(time.Minute, "", bin, targets.TestOS); err != nil { if sysTarget.Arch == runtime.GOOS || sysTarget.VMArch == runtime.GOOS { t.Fatal(err) } |
