summaryrefslogtreecommitdiff
path: root/integrationtests
diff options
context:
space:
mode:
Diffstat (limited to 'integrationtests')
-rw-r--r--integrationtests/close_test.go1
-rw-r--r--integrationtests/cmd/ioworkload/scenario_copy_file_range.go3
2 files changed, 4 insertions, 0 deletions
diff --git a/integrationtests/close_test.go b/integrationtests/close_test.go
index f2ecd34..3689fb8 100644
--- a/integrationtests/close_test.go
+++ b/integrationtests/close_test.go
@@ -28,6 +28,7 @@ func TestCloseInvalidFd(t *testing.T) {
runScenario(t, "close-invalid-fd", []ExpectedEvent{
{
Tracepoint: "enter_close",
+ Comm: "ioworkload",
MinCount: 1,
},
})
diff --git a/integrationtests/cmd/ioworkload/scenario_copy_file_range.go b/integrationtests/cmd/ioworkload/scenario_copy_file_range.go
index 87531b0..ce0524e 100644
--- a/integrationtests/cmd/ioworkload/scenario_copy_file_range.go
+++ b/integrationtests/cmd/ioworkload/scenario_copy_file_range.go
@@ -37,6 +37,9 @@ func copyFileRangeBasic() error {
if _, err := syscall.Write(srcFd, data); err != nil {
return fmt.Errorf("write source: %w", err)
}
+ if _, err := syscall.Seek(srcFd, 0, 0); err != nil {
+ return fmt.Errorf("seek source: %w", err)
+ }
n, _, errno := syscall.Syscall6(uintptr(sysCopyFileRange), uintptr(srcFd), 0, uintptr(dstFd), 0, uintptr(len(data)), 0)
if errno != 0 {