diff options
Diffstat (limited to 'integrationtests/rename_test.go')
| -rw-r--r-- | integrationtests/rename_test.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/integrationtests/rename_test.go b/integrationtests/rename_test.go index 0ae1d47..50d80cb 100644 --- a/integrationtests/rename_test.go +++ b/integrationtests/rename_test.go @@ -34,3 +34,25 @@ func TestRenameRenameat2(t *testing.T) { }, }) } + +func TestRenameEnoent(t *testing.T) { + runScenario(t, "rename-enoent", []ExpectedEvent{ + { + PathContains: "rename-enoent-missing.txt", + Tracepoint: "enter_rename", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} + +func TestRenameNoreplace(t *testing.T) { + runScenario(t, "rename-noreplace", []ExpectedEvent{ + { + PathContains: "noreplace-dst.txt", + Tracepoint: "enter_renameat2", + Comm: "ioworkload", + MinCount: 1, + }, + }) +} |
