Stub for setrlimit

Change-Id: I54c7233d71805711bd72e1e751456aad30fd3e35
This commit is contained in:
2014-04-28 10:05:45 +02:00
parent e39e890e08
commit ac5b3e53d8
10 changed files with 49 additions and 25 deletions

View File

@@ -138,14 +138,12 @@ ATF_TC_BODY(snprintf_float, tc)
uint32_t ul, uh;
time_t now;
char buf[1000];
#if !defined(__minix)
struct rlimit rl;
rl.rlim_cur = rl.rlim_max = 1 * 1024 * 1024;
ATF_CHECK(setrlimit(RLIMIT_AS, &rl) != -1);
rl.rlim_cur = rl.rlim_max = 1 * 1024 * 1024;
ATF_CHECK(setrlimit(RLIMIT_DATA, &rl) != -1);
#endif /* !defined(__minix) */
time(&now);
srand(now);