get-rusage-data tests: Avoid failure on Linux/glibc.
authorBruno Haible <bruno@clisp.org>
Fri, 19 May 2017 07:06:39 +0000 (09:06 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 19 May 2017 07:06:39 +0000 (09:06 +0200)
* tests/test-get-rusage-data.c (main): Don't expect a strict increase
on glibc systems.

ChangeLog
tests/test-get-rusage-data.c

index f4a1d078184f1ec92733ce8cf7e56a3fca76348b..3dce45ea6b070942fbe22d8538ca3bc5d8519122 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 75775358a14904b22b99944e10caf34828a1d297..c5989e35a2c386587a44fcbd2c104882d7a4d413 100644 (file)
@@ -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