diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-21 19:28:23 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-21 19:28:23 +0200 |
| commit | a5b711c5f221704209706b79fbf310a18e079391 (patch) | |
| tree | 84615902f79a901aa9d98e3423c4756477b7cf4b /integrationtests/fcntl_test.go | |
| parent | 2c2cbe07f5e10fdb996e2a039cde84be44866f18 (diff) | |
more on integration tests
Diffstat (limited to 'integrationtests/fcntl_test.go')
| -rw-r--r-- | integrationtests/fcntl_test.go | 36 |
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, + }, + }) +} |
