* modules/get-rusage-data-tests (Files): Add m4/musl.m4.
(configure.ac): Invoke gl_MUSL_LIBC.
* tests/test-get-rusage-data.c (main): Treat musl libc like glibc.
+2021-01-17 Bruno Haible <bruno@clisp.org>
+
+ get-rusage-data tests: Avoid test failure on musl libc.
+ * modules/get-rusage-data-tests (Files): Add m4/musl.m4.
+ (configure.ac): Invoke gl_MUSL_LIBC.
+ * tests/test-get-rusage-data.c (main): Treat musl libc like glibc.
+
2021-01-17 Bruno Haible <bruno@clisp.org>
immutable, get-rusage-data: Fix autoconf warning.
Files:
tests/test-get-rusage-data.c
tests/macros.h
+m4/musl.m4
Depends-on:
configure.ac:
+gl_MUSL_LIBC
Makefile.am:
TESTS += test-get-rusage-data
ASSERT (value2 >= value1);
ASSERT (value3 >= value2);
-#if !(__GLIBC__ == 2 || (defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __OpenBSD__ || defined _WIN32 || defined __CYGWIN__)
+#if !(__GLIBC__ == 2 || MUSL_LIBC || (defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __OpenBSD__ || defined _WIN32 || defined __CYGWIN__)
/* Allocating 2.5 MB of memory should increase the data segment size. */
ASSERT (value3 > value1);
#endif