X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fregression%2Fpthread_create-oom.c;h=c52a914efd72e2fa4c04c0b820ebf4065d034cca;hb=12865d0780bfe4f3b302b82a6f6c47eea05b55da;hp=56993ec5e6373adfbae18d994c62000d21fd37fa;hpb=cfa23cc1bd01f5c44d7746b8b1839f84d5e1b6eb;p=libc-test diff --git a/src/regression/pthread_create-oom.c b/src/regression/pthread_create-oom.c index 56993ec..c52a914 100644 --- a/src/regression/pthread_create-oom.c +++ b/src/regression/pthread_create-oom.c @@ -1,7 +1,6 @@ // commit: 59666802fba592a59f2f4ea4dcb053287fd55826 2011-02-15 // pthread_create should return EAGAIN on failure #include -#include #include #include #include "test.h" @@ -16,11 +15,8 @@ int main(void) pthread_t td; int r, arg; - r = t_vmfill(0, 0, 0); - if (r <= 0) { - t_error("fatal: vmfill has failed\n"); - return 1; - } + if (t_memfill() < 0) + t_error("memfill failed\n"); r = pthread_create(&td, 0, start, &arg); if (r == 0) t_error("pthread_create succeeded\n");