summaryrefslogtreecommitdiff
path: root/integrationtests/fcntl_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrationtests/fcntl_test.go')
-rw-r--r--integrationtests/fcntl_test.go36
1 files changed, 36 insertions, 0 deletions
diff --git a/integrationtests/fcntl_test.go b/integrationtests/fcntl_test.go
new file mode 100644
index 0000000..f9c95bd
--- /dev/null
+++ b/integrationtests/fcntl_test.go
@@ -0,0 +1,36 @@
+package integrationtests
+
+import "testing"
+
+func TestFcntlDupfd(t *testing.T) {
+ runScenario(t, "fcntl-dupfd", []ExpectedEvent{
+ {
+ PathContains: "fcntlfile.txt",
+ Tracepoint: "enter_fcntl",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}
+
+func TestFcntlSetfl(t *testing.T) {
+ runScenario(t, "fcntl-setfl", []ExpectedEvent{
+ {
+ PathContains: "fcntlsetflfile.txt",
+ Tracepoint: "enter_fcntl",
+ Comm: "ioworkload",
+ MinCount: 2,
+ },
+ })
+}
+
+func TestFcntlDupfdCloexec(t *testing.T) {
+ runScenario(t, "fcntl-dupfd-cloexec", []ExpectedEvent{
+ {
+ PathContains: "fcntlcloexecfile.txt",
+ Tracepoint: "enter_fcntl",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}