diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-12-13 13:49:08 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-12-17 11:39:14 +0100 |
| commit | 019cf5f2356fbadb904bb39993ec9e3adb1999c5 (patch) | |
| tree | a799d25a976c0f142aabcfb2c2f9d3e922532f3d /pkg/csource | |
| parent | 9150b3e5442f9e9ebc53ef5d5a2cd00f01e6f118 (diff) | |
sys: move test syscalls to a separate target
We have them in linux solely for historical reasons.
Fixes #462
Diffstat (limited to 'pkg/csource')
| -rw-r--r-- | pkg/csource/csource_test.go | 3 | ||||
| -rw-r--r-- | pkg/csource/linux_common.go | 7 |
2 files changed, 3 insertions, 7 deletions
diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go index 6e79edc43..4aaaa3451 100644 --- a/pkg/csource/csource_test.go +++ b/pkg/csource/csource_test.go @@ -41,6 +41,9 @@ func TestGenerateOne(t *testing.T) { UseTmpDir: true, } for _, target := range prog.AllTargets() { + if target.OS == "test" { + continue + } if target.OS == "fuchsia" { continue // TODO(dvyukov): support fuchsia } diff --git a/pkg/csource/linux_common.go b/pkg/csource/linux_common.go index c43fb43c2..14a7d91df 100644 --- a/pkg/csource/linux_common.go +++ b/pkg/csource/linux_common.go @@ -1733,13 +1733,6 @@ static uintptr_t syz_kvm_setup_cpu(uintptr_t a0, uintptr_t a1, uintptr_t a2, uin #endif #endif -#if defined(SYZ_EXECUTOR) -static uintptr_t syz_test() -{ - return 0; -} -#endif - #if defined(SYZ_EXECUTOR) || defined(SYZ_SANDBOX_NONE) || defined(SYZ_SANDBOX_SETUID) || defined(SYZ_SANDBOX_NAMESPACE) static void loop(); |
