From 092ca5cd64fd562289b42f248bfd9cf62569fea9 Mon Sep 17 00:00:00 2001 From: Jiri Olsa Date: Wed, 13 Dec 2023 17:34:59 +0000 Subject: [PATCH] tetragon: Add missing signal helper checks to killer tests Some of the killer tests are missing signal helper checks, adding them. Signed-off-by: Jiri Olsa --- pkg/sensors/tracing/killer_amd64_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/sensors/tracing/killer_amd64_test.go b/pkg/sensors/tracing/killer_amd64_test.go index 212ae5a0623..9383ff0e8fb 100644 --- a/pkg/sensors/tracing/killer_amd64_test.go +++ b/pkg/sensors/tracing/killer_amd64_test.go @@ -23,6 +23,9 @@ func TestKillerOverride32(t *testing.T) { if !bpf.HasOverrideHelper() { t.Skip("skipping killer test, bpf_override_return helper not available") } + if !bpf.HasSignalHelper() { + t.Skip("skipping killer test, bpf_send_signal helper not available") + } test := testutils.RepoRootPath("contrib/tester-progs/killer-tester-32") configHook := ` @@ -83,6 +86,9 @@ func TestKillerSignal32(t *testing.T) { if !bpf.HasOverrideHelper() { t.Skip("skipping killer test, bpf_override_return helper not available") } + if !bpf.HasSignalHelper() { + t.Skip("skipping killer test, bpf_send_signal helper not available") + } test := testutils.RepoRootPath("contrib/tester-progs/killer-tester-32") configHook := ` @@ -143,6 +149,9 @@ func TestKillerOverrideBothBits(t *testing.T) { if !bpf.HasOverrideHelper() { t.Skip("skipping killer test, bpf_override_return helper not available") } + if !bpf.HasSignalHelper() { + t.Skip("skipping killer test, bpf_send_signal helper not available") + } test32 := testutils.RepoRootPath("contrib/tester-progs/killer-tester-32") test64 := testutils.RepoRootPath("contrib/tester-progs/killer-tester")