From f7b1163afba16b6266423f3661ccad8a329f7754 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 13 Sep 2017 20:40:27 +0200 Subject: syz-manager/mgrconfig: explicitly specify target in config Add target config parameter (e.g. linux/amd64) which controls target OS/arch. No more explicit assumptions about target. --- pkg/csource/csource_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/csource/csource_test.go') diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go index fbe984b3c..941274cb9 100644 --- a/pkg/csource/csource_test.go +++ b/pkg/csource/csource_test.go @@ -8,6 +8,7 @@ import ( "math/rand" "os" "reflect" + "runtime" "testing" "time" @@ -16,6 +17,10 @@ import ( _ "github.com/google/syzkaller/sys" ) +func init() { + prog.SetDefaultTarget("linux", runtime.GOARCH) +} + func initTest(t *testing.T) (rand.Source, int) { t.Parallel() iters := 1 -- cgit mrf-deployment