diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-09-13 20:40:27 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-09-15 16:02:37 +0200 |
| commit | f7b1163afba16b6266423f3661ccad8a329f7754 (patch) | |
| tree | c14961e90521bb89a714a5b9ddb64f918c313701 /pkg/csource/csource_test.go | |
| parent | 34bc139642b0caed49b2ba2dcb9ccff10e04c55f (diff) | |
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.
Diffstat (limited to 'pkg/csource/csource_test.go')
| -rw-r--r-- | pkg/csource/csource_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
