summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2019-11-14 21:17:01 +0000
committeranton <anton@cvs.openbsd.org>2019-11-14 21:17:01 +0000
commit4f8128275520fab0ab5796ebff3aea667fb0b2bf (patch)
tree96f6c08c1dc58a0e528b88627a7c217b1d40396f /regress
parent053592815e6a3f77b2493c049efee27c8224f2cd (diff)
increase pipe size in order to exercise big pipe allocations
Diffstat (limited to 'regress')
-rw-r--r--regress/sys/kern/pipe/test-run-down.c13
-rw-r--r--regress/sys/kern/pipe/test-thundering-herd.c4
2 files changed, 9 insertions, 8 deletions
diff --git a/regress/sys/kern/pipe/test-run-down.c b/regress/sys/kern/pipe/test-run-down.c
index 9728939ae36..f782126853e 100644
--- a/regress/sys/kern/pipe/test-run-down.c
+++ b/regress/sys/kern/pipe/test-run-down.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test-run-down.c,v 1.1 2019/11/09 21:10:15 anton Exp $ */
+/* $OpenBSD: test-run-down.c,v 1.2 2019/11/14 21:17:00 anton Exp $ */
/*
* Copyright (c) 2019 Anton Lindqvist <anton@openbsd.org>
@@ -47,16 +47,17 @@ static void *write_thread(void *);
* Verify delivery of SIGPIPE while trying to write on a pipe where the read end
* is gone.
*
- * The writer thread first of writes PIPE_SIZE number of bytes and then tries to
- * perform the same operation again. The ambition is to cause the writer thread
- * to go to sleep since the pipe capacity is exhausted. The main thread closes
- * the read end at this point causing the writer thread to wake up and punt.
+ * The writer thread first of writes BIG_PIPE_SIZE number of bytes and then
+ * tries to perform the same operation again. The ambition is to cause the
+ * writer thread to go to sleep since the pipe capacity is exhausted. The main
+ * thread closes the read end at this point causing the writer thread to wake up
+ * and punt.
*/
int
test_run_down_write_big()
{
- return test_run_down(PIPE_SIZE);
+ return test_run_down(BIG_PIPE_SIZE);
}
/*
diff --git a/regress/sys/kern/pipe/test-thundering-herd.c b/regress/sys/kern/pipe/test-thundering-herd.c
index 7783a9edf1f..8f076d416ac 100644
--- a/regress/sys/kern/pipe/test-thundering-herd.c
+++ b/regress/sys/kern/pipe/test-thundering-herd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test-thundering-herd.c,v 1.1 2019/11/09 21:10:15 anton Exp $ */
+/* $OpenBSD: test-thundering-herd.c,v 1.2 2019/11/14 21:17:00 anton Exp $ */
/*
* Copyright (c) 2019 Anton Lindqvist <anton@openbsd.org>
@@ -97,7 +97,7 @@ test_thundering_herd(int doread, int dosignal)
if (pipe(ctx.c_cv) == -1)
err(1, "pipe");
- ctx.c_bufsiz = ctx.c_read ? 1 : PIPE_SIZE;
+ ctx.c_bufsiz = ctx.c_read ? 1 : BIG_PIPE_SIZE;
ctx.c_buf = malloc(ctx.c_bufsiz);
if (ctx.c_buf == NULL)
err(1, NULL);