summaryrefslogtreecommitdiff
path: root/regress/sys/kern/splice/args-max.pl
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2011-01-07 22:06:09 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2011-01-07 22:06:09 +0000
commit288eb9bdabfd29a4643657cee203bd87068d9425 (patch)
tree6e580e504fff76e283741f51e0a6742ef40359c9 /regress/sys/kern/splice/args-max.pl
parent3a2bd2908bcd71d2b15fc9ea62ac8a08d5c304db (diff)
Add kernel regression tests for socket splicing.
Diffstat (limited to 'regress/sys/kern/splice/args-max.pl')
-rw-r--r--regress/sys/kern/splice/args-max.pl19
1 files changed, 19 insertions, 0 deletions
diff --git a/regress/sys/kern/splice/args-max.pl b/regress/sys/kern/splice/args-max.pl
new file mode 100644
index 00000000000..33d98d02130
--- /dev/null
+++ b/regress/sys/kern/splice/args-max.pl
@@ -0,0 +1,19 @@
+# test maximum data length
+
+use strict;
+use warnings;
+
+our %args = (
+ client => {
+ func => sub { errignore(@_); write_char(@_); },
+ len => 2**17,
+ nocheck => 1,
+ },
+ relay => {
+ max => 32117,
+ },
+ len => 32117,
+ md5 => "ee338e9693fb2a2ec101bb28935ed123",
+);
+
+1;