From 99e99c6ea35ae97e84d727449f9ad7c4c0a9fa23 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 27 May 2026 21:57:37 +0300 Subject: Stabilize integration test startup --- integrationtests/ipc_test.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'integrationtests/ipc_test.go') 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:") -- cgit v1.2.3