summaryrefslogtreecommitdiff
path: root/integrationtests/copy_file_range_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrationtests/copy_file_range_test.go')
-rw-r--r--integrationtests/copy_file_range_test.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/integrationtests/copy_file_range_test.go b/integrationtests/copy_file_range_test.go
new file mode 100644
index 0000000..d87c5af
--- /dev/null
+++ b/integrationtests/copy_file_range_test.go
@@ -0,0 +1,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,
+ },
+ })
+}