X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Fregression%2Fpthread_create-oom.c;h=c52a914efd72e2fa4c04c0b820ebf4065d034cca;hp=e8d8169286e3be8bb2ef27a4ee91f9b4f9a16dc5;hb=2bfb414517031063e18dc4a07543e279dc07461d;hpb=b3af1001513bbe678070242a1ac1afc8f3b378f0 diff --git a/src/regression/pthread_create-oom.c b/src/regression/pthread_create-oom.c index e8d8169..c52a914 100644 --- a/src/regression/pthread_create-oom.c +++ b/src/regression/pthread_create-oom.c @@ -15,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");