diff options
Diffstat (limited to 'integrationtests/fcntl_test.go')
| -rw-r--r-- | integrationtests/fcntl_test.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/integrationtests/fcntl_test.go b/integrationtests/fcntl_test.go index f9c95bd..5062bd6 100644 --- a/integrationtests/fcntl_test.go +++ b/integrationtests/fcntl_test.go @@ -34,3 +34,24 @@ func TestFcntlDupfdCloexec(t *testing.T) { }, }) } + +func TestFcntlInvalidFd(t *testing.T) { + runScenario(t, "fcntl-invalid-fd", []ExpectedEvent{ + { + Tracepoint: "enter_fcntl", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestFcntlDupfdMax(t *testing.T) { + runScenario(t, "fcntl-dupfd-max", []ExpectedEvent{ + { + PathContains: "fcntldupfdmaxfile.txt", + Tracepoint: "enter_fcntl", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} |
