diff options
Diffstat (limited to 'integrationtests/dir_test.go')
| -rw-r--r-- | integrationtests/dir_test.go | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/integrationtests/dir_test.go b/integrationtests/dir_test.go index 67bbe93..585f03f 100644 --- a/integrationtests/dir_test.go +++ b/integrationtests/dir_test.go @@ -45,3 +45,35 @@ func TestDirGetdents(t *testing.T) { }, }) } + +func TestDirMkdirEexist(t *testing.T) { + runScenario(t, "dir-mkdir-eexist", []ExpectedEvent{ + { + PathContains: "mkdir-eexist-subdir", + Tracepoint: "enter_mkdir", + Comm: "ioworkload", + MinCount: 2, + }, + }) +} + +func TestDirChdirEnoent(t *testing.T) { + runScenario(t, "dir-chdir-enoent", []ExpectedEvent{ + { + PathContains: "chdir-enoent-missing", + Tracepoint: "enter_chdir", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestDirGetdentsEbadf(t *testing.T) { + runScenario(t, "dir-getdents-ebadf", []ExpectedEvent{ + { + Tracepoint: "enter_getdents64", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} |
