diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-08-22 21:46:43 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-08-22 21:46:43 +0200 |
| commit | 1da71ab086c5d9e6a32beae37b109efaa856b257 (patch) | |
| tree | 61e6a9a8337239e576342f8aa886d106c44d7e24 /pkg/ipc | |
| parent | df5c8fa25ff3ed977df7bc12ac25b1e6b8ef2b21 (diff) | |
pkg/ipc: fix cross-arch build in test
BrokenCompiler is only initialized after Get.
Diffstat (limited to 'pkg/ipc')
| -rw-r--r-- | pkg/ipc/ipc_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/ipc/ipc_test.go b/pkg/ipc/ipc_test.go index f0e19ed33..c8210cdcd 100644 --- a/pkg/ipc/ipc_test.go +++ b/pkg/ipc/ipc_test.go @@ -60,7 +60,7 @@ func initTest(t *testing.T) (*prog.Target, rand.Source, int, bool, bool) { func TestExecutor(t *testing.T) { t.Parallel() for _, sysTarget := range targets.List[runtime.GOOS] { - sysTarget := sysTarget + sysTarget := targets.Get(runtime.GOOS, sysTarget.Arch) t.Run(sysTarget.Arch, func(t *testing.T) { if sysTarget.BrokenCompiler != "" { t.Skipf("skipping, broken cross-compiler: %v", sysTarget.BrokenCompiler) |
