From 438824f16e262f965e344d74b01bf341200a2ffd Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 23 Feb 2026 13:01:52 +0200 Subject: integrationtests: add pidfd_getfd scenarios and tests --- integrationtests/pidfd_test.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 integrationtests/pidfd_test.go (limited to 'integrationtests/pidfd_test.go') diff --git a/integrationtests/pidfd_test.go b/integrationtests/pidfd_test.go new file mode 100644 index 0000000..d742078 --- /dev/null +++ b/integrationtests/pidfd_test.go @@ -0,0 +1,24 @@ +package integrationtests + +import "testing" + +func TestPidfdGetfdSuccess(t *testing.T) { + runScenario(t, "pidfd-getfd-success", []ExpectedEvent{ + { + PathContains: "pidfd-getfd-source.txt", + Tracepoint: "enter_pidfd_getfd", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestPidfdGetfdFailure(t *testing.T) { + runScenario(t, "pidfd-getfd-failure", []ExpectedEvent{ + { + Tracepoint: "enter_pidfd_getfd", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} -- cgit v1.2.3