]> git.saurik.com Git - apple/libpthread.git/blobdiff - tests/main_stack_custom.c
libpthread-454.100.8.tar.gz
[apple/libpthread.git] / tests / main_stack_custom.c
index eb0d660114fe8806fc4015f86027de420afdabcd..2e992a8874c18a4d8aa11c1a7770727e043a690d 100644 (file)
@@ -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");
 }