From 019cf5f2356fbadb904bb39993ec9e3adb1999c5 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 13 Dec 2017 13:49:08 +0100 Subject: sys: move test syscalls to a separate target We have them in linux solely for historical reasons. Fixes #462 --- pkg/csource/csource_test.go | 3 +++ pkg/csource/linux_common.go | 7 ------- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'pkg/csource') 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(); -- cgit mrf-deployment