summaryrefslogtreecommitdiff
path: root/tests/lib/libc/sys
diff options
context:
space:
mode:
authorrin <rin@NetBSD.org>2020-10-13 06:58:57 +0000
committerrin <rin@NetBSD.org>2020-10-13 06:58:57 +0000
commitcc84348d41f3c2a506615c4c8302b6433c768722 (patch)
tree228ccb604f663728a838e39c6e76517aa78e4683 /tests/lib/libc/sys
parentf502bf240aaf9ae86bac2402d09ff1379c57aeb6 (diff)
Bump soft/hard limits for stack to 6MB for aarch64{,eb}, where old value
(~4MB) is too small to be accepted.
Diffstat (limited to 'tests/lib/libc/sys')
-rw-r--r--tests/lib/libc/sys/t_setrlimit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/libc/sys/t_setrlimit.c b/tests/lib/libc/sys/t_setrlimit.c
index bf7ae488f01..092b19b9fa3 100644
--- a/tests/lib/libc/sys/t_setrlimit.c
+++ b/tests/lib/libc/sys/t_setrlimit.c
@@ -1,4 +1,4 @@
-/* $NetBSD: t_setrlimit.c,v 1.6 2017/01/13 21:16:38 christos Exp $ */
+/* $NetBSD: t_setrlimit.c,v 1.7 2020/10/13 06:58:57 rin Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_setrlimit.c,v 1.6 2017/01/13 21:16:38 christos Exp $");
+__RCSID("$NetBSD: t_setrlimit.c,v 1.7 2020/10/13 06:58:57 rin Exp $");
#include <sys/resource.h>
#include <sys/mman.h>
@@ -517,7 +517,7 @@ ATF_TC_BODY(setrlimit_stack, tc)
struct rlimit res;
/* Ensure soft limit is not bigger than hard limit */
- res.rlim_cur = res.rlim_max = 4192256;
+ res.rlim_cur = res.rlim_max = 6 * 1024 * 1024;
ATF_REQUIRE(setrlimit(RLIMIT_STACK, &res) == 0);
ATF_REQUIRE(getrlimit(RLIMIT_STACK, &res) == 0);
ATF_CHECK(res.rlim_cur <= res.rlim_max);