change vmfill into memfill that limits heap separately (needed on arm)
[libc-test] / src / regression / setenv-oom.c
index d7e6162..6780310 100644 (file)
@@ -1,6 +1,7 @@
 // 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"
@@ -9,8 +10,8 @@ int main(void)
 {
        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;