summaryrefslogtreecommitdiff
path: root/integrationtests/pidfd_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrationtests/pidfd_test.go')
-rw-r--r--integrationtests/pidfd_test.go24
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,
+ },
+ })
+}