From 84b58ef8701d3d7d6071b391196ee78556f724df Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 4 Jun 2016 22:44:05 +0200 Subject: 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. --- test/test-skeleton.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'test') 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) -- cgit v1.2.3