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");
}