diff options
| author | Paul Buetow <paul@buetow.org> | 2025-04-11 23:19:55 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-04-11 23:19:55 +0300 |
| commit | 7c7a726aaf4df1e9444f72b0f35373c82adba188 (patch) | |
| tree | 1d019446fa8e8f8b4b1c5b4694cf2b72419e4572 /internal/dup_test.go | |
| parent | 3877d0b57ebbca789872563dfa0ff3875b4c77bf (diff) | |
initial du test
Diffstat (limited to 'internal/dup_test.go')
| -rw-r--r-- | internal/dup_test.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/internal/dup_test.go b/internal/dup_test.go new file mode 100644 index 0000000..c06adfc --- /dev/null +++ b/internal/dup_test.go @@ -0,0 +1,24 @@ +package internal + +import ( + "ior/internal/types" + "syscall" + "testing" +) + +// TODO: Finish this test +func TestDup3(t *testing.T) { + // loop := newEventLoop() + + dup3Event := types.Dup3Event{ + EventType: types.ENTER_DUP3_EVENT, + TraceId: types.SYS_ENTER_DUP3, + Time: 0, + Pid: 1, + Tid: 2, + Fd: 100, + Flags: syscall.O_CLOEXEC, + } + + t.Log(dup3Event.Bytes()) +} |
