diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-23 13:01:52 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-23 13:01:52 +0200 |
| commit | 438824f16e262f965e344d74b01bf341200a2ffd (patch) | |
| tree | 17612e07938a16224ca7d7b4c439247e5fb3c2c2 /integrationtests/pidfd_test.go | |
| parent | 59df9d8c4562ee46a37256e1330bd5e65781eba7 (diff) | |
integrationtests: add pidfd_getfd scenarios and tests
Diffstat (limited to 'integrationtests/pidfd_test.go')
| -rw-r--r-- | integrationtests/pidfd_test.go | 24 |
1 files changed, 24 insertions, 0 deletions
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, + }, + }) +} |
