projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change vmfill into memfill that limits heap separately (needed on arm)
[libc-test]
/
src
/
regression
/
setenv-oom.c
diff --git
a/src/regression/setenv-oom.c
b/src/regression/setenv-oom.c
index
d7e6162
..
6780310
100644
(file)
--- a/
src/regression/setenv-oom.c
+++ b/
src/regression/setenv-oom.c
@@
-1,6
+1,7
@@
// commit 543787039098c121917cb5f3e129d84b61afa61b 2013-10-04
// setenv should not crash on oom
#include <stdlib.h>
// commit 543787039098c121917cb5f3e129d84b61afa61b 2013-10-04
// setenv should not crash on oom
#include <stdlib.h>
+#include <sys/resource.h>
#include <string.h>
#include <errno.h>
#include "test.h"
#include <string.h>
#include <errno.h>
#include "test.h"
@@
-9,8
+10,8
@@
int main(void)
{
char buf[10000];
{
char buf[10000];
- if (t_
vmfill(0,0,0
) < 0)
- t_error("
vmfill failed: %s\n", strerror(errno)
);
+ if (t_
memfill(
) < 0)
+ t_error("
memfill failed\n"
);
memset(buf, 'x', sizeof buf);
buf[sizeof buf - 1] = 0;
memset(buf, 'x', sizeof buf);
buf[sizeof buf - 1] = 0;