X-Git-Url: https://git.saurik.com/apple/libpthread.git/blobdiff_plain/a0619f9c1b0bf5530b0accb349cdfa98fa5b8c02..f5f1275602d7d7c891383036ec08c0bfc904be22:/tests/main_stack_custom.c diff --git a/tests/main_stack_custom.c b/tests/main_stack_custom.c index eb0d660..2e992a8 100644 --- a/tests/main_stack_custom.c +++ b/tests/main_stack_custom.c @@ -14,7 +14,7 @@ T_DECL(main_stack_custom, "tests the reported values for a custom main thread st struct rlimit lim; T_QUIET; T_ASSERT_POSIX_SUCCESS(getrlimit(RLIMIT_STACK, &lim), NULL); - lim.rlim_cur = lim.rlim_cur / 8; + lim.rlim_cur = lim.rlim_cur + 32 * PAGE_SIZE; T_EXPECT_EQ(setrlimit(RLIMIT_STACK, &lim), -1, "setrlimit for stack should fail with custom stack"); T_EXPECT_EQ((size_t)STACKSIZE, pthread_get_stacksize_np(pthread_self()), "reported stacksize shouldn't change"); }