git: 4b97eef0bb3e - main - Revert "t_setrlimit: Adjust resource limit to 20M"

From: Marcin Wojtas <mw_at_FreeBSD.org>
Date: Mon, 20 Dec 2021 17:36:03 UTC
The branch main has been updated by mw:

URL: https://cgit.FreeBSD.org/src/commit/?id=4b97eef0bb3e4403feda3f51aaaf7b75b953db76

commit 4b97eef0bb3e4403feda3f51aaaf7b75b953db76
Author:     Marcin Wojtas <mw@FreeBSD.org>
AuthorDate: 2021-12-20 17:33:06 +0000
Commit:     Marcin Wojtas <mw@FreeBSD.org>
CommitDate: 2021-12-20 17:33:06 +0000

    Revert "t_setrlimit: Adjust resource limit to 20M"
    
    This reverts commit 4f741801d86089a1c5d631ba1e0f1421cdcf7a7e.
    
    As per discussion in PR: 260303 the reverted patch covered the
    real issue with a fixed address of the top of the stack.
---
 contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c b/contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c
index e7e294cb5df3..d5c50155e6dd 100644
--- a/contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c
+++ b/contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c
@@ -554,11 +554,7 @@ ATF_TC_BODY(setrlimit_stack, tc)
 		atf_tc_skip("https://bugs.freebsd.org/259969");
 
 	/* Ensure soft limit is not bigger than hard limit */
-#ifdef __FreeBSD__
-	res.rlim_cur = res.rlim_max = 20971520;
-#else
 	res.rlim_cur = res.rlim_max = 4192256;
-#endif
 	ATF_REQUIRE(setrlimit(RLIMIT_STACK, &res) == 0);
 	ATF_REQUIRE(getrlimit(RLIMIT_STACK, &res) == 0);
 	ATF_CHECK(res.rlim_cur <= res.rlim_max);