diff options
| author | rin <rin@NetBSD.org> | 2020-10-13 06:58:57 +0000 |
|---|---|---|
| committer | rin <rin@NetBSD.org> | 2020-10-13 06:58:57 +0000 |
| commit | cc84348d41f3c2a506615c4c8302b6433c768722 (patch) | |
| tree | 228ccb604f663728a838e39c6e76517aa78e4683 /tests/lib/libc/sys | |
| parent | f502bf240aaf9ae86bac2402d09ff1379c57aeb6 (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.c | 6 |
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); |
