projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix timeout calc in pthread_cond-smasher
[libc-test]
/
src
/
regression
/
pthread_create-oom.c
diff --git
a/src/regression/pthread_create-oom.c
b/src/regression/pthread_create-oom.c
index
56993ec
..
c52a914
100644
(file)
--- 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 <pthread.h>
// commit: 59666802fba592a59f2f4ea4dcb053287fd55826 2011-02-15
// pthread_create should return EAGAIN on failure
#include <pthread.h>
-#include <stdio.h>
#include <errno.h>
#include <string.h>
#include "test.h"
#include <errno.h>
#include <string.h>
#include "test.h"
@@
-16,11
+15,8
@@
int main(void)
pthread_t td;
int r, arg;
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");
r = pthread_create(&td, 0, start, &arg);
if (r == 0)
t_error("pthread_create succeeded\n");