summaryrefslogtreecommitdiff
path: root/integrationtests
diff options
context:
space:
mode:
Diffstat (limited to 'integrationtests')
-rw-r--r--integrationtests/open_test.go3
-rw-r--r--integrationtests/rename_test.go2
2 files changed, 4 insertions, 1 deletions
diff --git a/integrationtests/open_test.go b/integrationtests/open_test.go
index 8dfbba6..dae5244 100644
--- a/integrationtests/open_test.go
+++ b/integrationtests/open_test.go
@@ -84,9 +84,12 @@ func TestOpenPidFilter(t *testing.T) {
})
// Child's file should NOT be captured (different PID).
+ // Scope to openat so parent cleanup unlink/rmdir operations on childfile
+ // do not create false positives.
AssertEventsAbsent(t, result, []ExpectedEvent{
{
PathContains: "childfile.txt",
+ Tracepoint: "enter_openat",
},
})
}
diff --git a/integrationtests/rename_test.go b/integrationtests/rename_test.go
index 50d80cb..b64ea56 100644
--- a/integrationtests/rename_test.go
+++ b/integrationtests/rename_test.go
@@ -38,7 +38,7 @@ func TestRenameRenameat2(t *testing.T) {
func TestRenameEnoent(t *testing.T) {
runScenario(t, "rename-enoent", []ExpectedEvent{
{
- PathContains: "rename-enoent-missing.txt",
+ PathContains: "rename-enoent-new.txt",
Tracepoint: "enter_rename",
Comm: "ioworkload",
MinCount: 1,