From ca620dd8f97f5b3a9134b687b5584203019518fb Mon Sep 17 00:00:00 2001 From: Greg Steuck Date: Wed, 3 Apr 2024 09:36:53 -0700 Subject: executor: skip executor tests on systems with BrokenCompiler OpenBSD in particular is not compatible with TestOS expectation of having a syscall function. --- executor/common_ext_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'executor') diff --git a/executor/common_ext_test.go b/executor/common_ext_test.go index 2815b095a..672ad7c74 100644 --- a/executor/common_ext_test.go +++ b/executor/common_ext_test.go @@ -14,6 +14,7 @@ import ( "github.com/google/syzkaller/pkg/ipc/ipcconfig" "github.com/google/syzkaller/pkg/osutil" "github.com/google/syzkaller/prog" + "github.com/google/syzkaller/sys/targets" ) func TestCommonExt(t *testing.T) { @@ -21,6 +22,10 @@ func TestCommonExt(t *testing.T) { if err != nil { t.Fatal(err) } + sysTarget := targets.Get(target.OS, target.Arch) + if sysTarget.BrokenCompiler != "" { + t.Skipf("skipping, broken cross-compiler: %v", sysTarget.BrokenCompiler) + } bin, err := csource.BuildFile(target, "executor.cc", "-DSYZ_TEST_COMMON_EXT_EXAMPLE=1") if err != nil { t.Fatal(err) -- cgit mrf-deployment