summaryrefslogtreecommitdiff
path: root/integrationtests/copy_file_range_test.go
blob: d87c5af13a3fe215de5cb918e491c7edbf4acfee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package integrationtests

import "testing"

func TestCopyFileRangeBasic(t *testing.T) {
	runScenario(t, "copy-file-range-basic", []ExpectedEvent{
		{
			PathContains: "copyrangesrc.txt",
			Tracepoint:   "enter_copy_file_range",
			Comm:         "ioworkload",
			MinCount:     1,
		},
	})
}

func TestCopyFileRangeBadDstFd(t *testing.T) {
	runScenario(t, "copy-file-range-bad-dst-fd", []ExpectedEvent{
		{
			PathContains: "copyrangeebadfsrc.txt",
			Tracepoint:   "enter_copy_file_range",
			Comm:         "ioworkload",
			MinCount:     1,
		},
	})
}