summaryrefslogtreecommitdiff
path: root/integrationtests/open_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-23 09:55:29 +0200
committerPaul Buetow <paul@buetow.org>2026-02-23 09:55:29 +0200
commit9e7b820cfacb50299720b9d391de907d6f3fbdec (patch)
tree9c61cfffa44e407003d369ff1ba5ab99eb64c3f9 /integrationtests/open_test.go
parent55f33883838336c70d483779b0435c6e781b615e (diff)
Fix integration trace expectations and fd/open event handling
Diffstat (limited to 'integrationtests/open_test.go')
-rw-r--r--integrationtests/open_test.go3
1 files changed, 3 insertions, 0 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",
},
})
}