Revert "t_setrlimit: Adjust resource limit to 20M"

This reverts commit 4f741801d8.

As per discussion in PR: 260303 the reverted patch covered the
real issue with a fixed address of the top of the stack.
This commit is contained in:
Marcin Wojtas 2021-12-20 18:33:06 +01:00
parent 2ffb13149c
commit 4b97eef0bb

View File

@ -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);