diff options
author | Bruno Haible <bruno@clisp.org> | 2017-05-19 09:06:39 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2017-05-19 09:06:39 +0200 |
commit | fa529e849b9e8e0083d84aa60c9023195a94a11f (patch) | |
tree | 50050cd14e98c72891ce8a9513575322037906a3 | |
parent | c132245165b58562446b222ddc7deb76465af35d (diff) | |
download | gnulib-fa529e849b9e8e0083d84aa60c9023195a94a11f.tar.gz |
get-rusage-data tests: Avoid failure on Linux/glibc.
* tests/test-get-rusage-data.c (main): Don't expect a strict increase
on glibc systems.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | tests/test-get-rusage-data.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2017-05-19 Bruno Haible <bruno@clisp.org> + + get-rusage-data tests: Avoid failure on Linux/glibc. + * tests/test-get-rusage-data.c (main): Don't expect a strict increase + on glibc systems. + 2017-05-18 Bruno Haible <bruno@clisp.org> localename: Include necessary header files on Cygwin. diff --git a/tests/test-get-rusage-data.c b/tests/test-get-rusage-data.c index 75775358a1..c5989e35a2 100644 --- a/tests/test-get-rusage-data.c +++ b/tests/test-get-rusage-data.c @@ -55,7 +55,7 @@ main () ASSERT (value2 >= value1); ASSERT (value3 >= value2); -#if !((defined __APPLE__ && defined __MACH__) || defined __DragonFly__ || defined __OpenBSD__ || (defined _WIN32 || defined __WIN32__) || defined __CYGWIN__) +#if !(__GLIBC__ == 2 || (defined __APPLE__ && defined __MACH__) || defined __DragonFly__ || defined __OpenBSD__ || (defined _WIN32 || defined __WIN32__) || defined __CYGWIN__) /* Allocating 2.5 MB of memory should increase the data segment size. */ ASSERT (value3 > value1); #endif |