From de453f342be9edcca7de5a41e153ced8ad7f1a70 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 23 Jul 2019 10:01:44 +0200 Subject: pkg/csource: skip cross-builds that are doomed to fail OpenBSD instance failed with: --- FAIL: TestSysTests (12.50s) --- FAIL: TestSysTests/linux/386 (0.16s) csource_test.go:145: failed to generate C source for ../../sys/linux/test/binder: cpp failed: exec: "cant-build-linux-on-openbsd": executable file not found in $PATH ... Skip unsupported cross-builds in TestSysTests. --- pkg/csource/csource_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go index e31347357..64f92d31b 100644 --- a/pkg/csource/csource_test.go +++ b/pkg/csource/csource_test.go @@ -117,6 +117,10 @@ func TestSysTests(t *testing.T) { t.Parallel() for _, target := range prog.AllTargets() { target := target + sysTarget := targets.Get(target.OS, target.Arch) + if runtime.GOOS != sysTarget.BuildOS { + continue // we need at least preprocessor binary to generate sources + } t.Run(target.OS+"/"+target.Arch, func(t *testing.T) { t.Parallel() dir := filepath.Join("..", "..", "sys", target.OS, "test") -- cgit mrf-deployment