diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-06-04 22:44:05 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-06-04 22:44:05 +0200 |
commit | 84b58ef8701d3d7d6071b391196ee78556f724df (patch) | |
tree | e6cfcfb68ddc8bdcc004608577f5beefc30d30aa /test | |
parent | c0f118c8869b9095612dfcc4a279e957b67a8efa (diff) |
test: sync with GNU libc
See here:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=900056024b75eae8b550d7fee1dec9e71f28344e
Fixes testsuite runs on newer kernels.
Diffstat (limited to 'test')
-rw-r--r-- | test/test-skeleton.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/test-skeleton.c b/test/test-skeleton.c index 4f2680485..85b4e6788 100644 --- a/test/test-skeleton.c +++ b/test/test-skeleton.c @@ -336,22 +336,6 @@ main (int argc, char *argv[]) setrlimit (RLIMIT_CORE, &core_limit); #endif -#ifdef RLIMIT_DATA - /* Try to avoid eating all memory if a test leaks. */ - if (getrlimit (RLIMIT_DATA, &data_limit) == 0) - { - if (TEST_DATA_LIMIT == RLIM_INFINITY) - data_limit.rlim_cur = data_limit.rlim_max; - else if (data_limit.rlim_cur > (rlim_t) TEST_DATA_LIMIT) - data_limit.rlim_cur = MIN ((rlim_t) TEST_DATA_LIMIT, - data_limit.rlim_max); - if (setrlimit (RLIMIT_DATA, &data_limit) < 0) - perror ("setrlimit: RLIMIT_DATA"); - } - else - perror ("getrlimit: RLIMIT_DATA"); -#endif - /* We put the test process in its own pgrp so that if it bogusly generates any job control signals, they won't hit the whole build. */ if (setpgid (0, 0) != 0) |