summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-10-08 23:38:29 +0300
committerPaul Buetow <paul@buetow.org>2025-10-08 23:38:29 +0300
commit2fc3b42d2aeb816bb8d36ad4fd078a55005a25e2 (patch)
tree5961a2c5e7567dcc7aa55eb8fdbfe7e9d70c98e8 /internal
parentd1e84afcac28a294f9b62474bd037fa983229de6 (diff)
clarify, that some tests are there already for FCNTL
Diffstat (limited to 'internal')
-rw-r--r--internal/eventloop.go1
-rw-r--r--internal/eventloop_test.go12
2 files changed, 4 insertions, 9 deletions
diff --git a/internal/eventloop.go b/internal/eventloop.go
index b504920..b5789da 100644
--- a/internal/eventloop.go
+++ b/internal/eventloop.go
@@ -297,7 +297,6 @@ func (e *eventLoop) tracepointExited(exitEv event.Event, ch chan<- *event.Pair)
return
}
- // TODO: Unit test this
case *FcntlEvent:
ep.Comm = e.comm(ep.EnterEv.GetTid())
fd := int32(v.Fd)
diff --git a/internal/eventloop_test.go b/internal/eventloop_test.go
index 356dcf9..7a6ce9d 100644
--- a/internal/eventloop_test.go
+++ b/internal/eventloop_test.go
@@ -2,12 +2,13 @@ package internal
import (
"context"
- "ior/internal/event"
- "ior/internal/file"
- "ior/internal/types"
"syscall"
"testing"
"time"
+
+ "ior/internal/event"
+ "ior/internal/file"
+ "ior/internal/types"
)
const (
@@ -997,11 +998,6 @@ func verifyCommName(t *testing.T, el *eventLoop, tid uint32, expectedComm string
// Test fcntl F_SETFL flag modification
func makeFcntlSetFlagsTestData(t *testing.T) (td testData) {
- // TODO: Investigate why this test is failing - temporarily disabled
- // The test fails with panic "expected a file.FdFile" during fcntl event processing
- // Returning empty test data to skip this test case
- // return td
-
fd := uint32(60)
filename := "fcntl_setfl_test.txt"