diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-27 21:57:37 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-27 21:57:37 +0300 |
| commit | 99e99c6ea35ae97e84d727449f9ad7c4c0a9fa23 (patch) | |
| tree | a5c690689719687716186de08f2085352461d2b4 /integrationtests/ipc_test.go | |
| parent | 45e02c6754dbc8217713d81d792bfc83e8523505 (diff) | |
Stabilize integration test startup
Diffstat (limited to 'integrationtests/ipc_test.go')
| -rw-r--r-- | integrationtests/ipc_test.go | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/integrationtests/ipc_test.go b/integrationtests/ipc_test.go index c48abb8..5672bbe 100644 --- a/integrationtests/ipc_test.go +++ b/integrationtests/ipc_test.go @@ -7,11 +7,13 @@ import ( const mqPayloadLen = uint64(14) +var ipcDescriptorTraceArgs = []string{"-trace-syscalls", "pipe,pipe2,eventfd,eventfd2,close"} + func TestPipeBasic(t *testing.T) { - result, _ := runScenarioResult(t, "pipe-basic", []ExpectedEvent{ + result, _ := runScenarioResultWithIorArgs(t, "pipe-basic", []ExpectedEvent{ {Tracepoint: "enter_pipe", MinCount: 1}, {Tracepoint: "enter_close", MinCount: 2}, - }) + }, ipcDescriptorTraceArgs) assertTracepointPathPrefix(t, result, "enter_pipe", "pipe:") if got := totalTracepointPathCount(result, "enter_close", "pipe:"); got < 2 { @@ -20,10 +22,10 @@ func TestPipeBasic(t *testing.T) { } func TestPipe2Basic(t *testing.T) { - result, _ := runScenarioResult(t, "pipe2-basic", []ExpectedEvent{ + result, _ := runScenarioResultWithIorArgs(t, "pipe2-basic", []ExpectedEvent{ {Tracepoint: "enter_pipe2", MinCount: 1}, {Tracepoint: "enter_close", MinCount: 2}, - }) + }, ipcDescriptorTraceArgs) assertTracepointPathPrefix(t, result, "enter_pipe2", "pipe:") if got := totalTracepointPathCount(result, "enter_close", "pipe:"); got < 2 { @@ -32,20 +34,20 @@ func TestPipe2Basic(t *testing.T) { } func TestEventfdBasic(t *testing.T) { - result, _ := runScenarioResult(t, "eventfd-basic", []ExpectedEvent{ + result, _ := runScenarioResultWithIorArgs(t, "eventfd-basic", []ExpectedEvent{ {Tracepoint: "enter_eventfd", MinCount: 1}, {Tracepoint: "enter_close", MinCount: 1}, - }) + }, ipcDescriptorTraceArgs) assertTracepointPathPrefix(t, result, "enter_eventfd", "eventfd:") assertTracepointPathPrefix(t, result, "enter_close", "eventfd:") } func TestEventfd2Basic(t *testing.T) { - result, _ := runScenarioResult(t, "eventfd2-basic", []ExpectedEvent{ + result, _ := runScenarioResultWithIorArgs(t, "eventfd2-basic", []ExpectedEvent{ {Tracepoint: "enter_eventfd2", MinCount: 1}, {Tracepoint: "enter_close", MinCount: 1}, - }) + }, ipcDescriptorTraceArgs) assertTracepointPathPrefix(t, result, "enter_eventfd2", "eventfd:") assertTracepointPathPrefix(t, result, "enter_close", "eventfd:") |
