aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorGreg Steuck <greg@nest.cx>2024-04-03 09:36:53 -0700
committerAleksandr Nogikh <nogikh@google.com>2024-04-05 14:23:21 +0000
commitca620dd8f97f5b3a9134b687b5584203019518fb (patch)
tree95247d7977ded011be4f2fcd48d0031ff96bc973 /executor
parent9bc1b5fd8bd8291a75216345cd0fb4fe15c98522 (diff)
executor: skip executor tests on systems with BrokenCompiler
OpenBSD in particular is not compatible with TestOS expectation of having a syscall function.
Diffstat (limited to 'executor')
-rw-r--r--executor/common_ext_test.go5
1 files changed, 5 insertions, 0 deletions
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)