summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/Makefile.am2
-rw-r--r--tests/mpc_check.c8
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index d769e5b..d4dffec 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -17,7 +17,7 @@
## You should have received a copy of the GNU Lesser General Public License
## along with this program. If not, see http://www.gnu.org/licenses/ .
-AM_CPPFLAGS = -I$(top_srcdir)/src
+AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)
LDADD = libmpc-tests.la $(top_builddir)/src/libmpc.la
# let libtool create an executable instead of a shell script
# useful for tests with valgrind
diff --git a/tests/mpc_check.c b/tests/mpc_check.c
index 569699e..185a185 100644
--- a/tests/mpc_check.c
+++ b/tests/mpc_check.c
@@ -35,6 +35,9 @@ along with this program. If not, see http://www.gnu.org/licenses/ .
#include <string.h>
#include <complex.h>
#include "mpc-tests.h"
+#ifdef __GNUC__
+#include <gnu/libc-version.h>
+#endif
gmp_randstate_t state;
unsigned long seed = 1;
@@ -176,6 +179,10 @@ main (int argc, char *argv[])
gmp_randinit_default (state);
+#ifdef __GNUC__
+ printf ("GNU libc version: %s\n", gnu_get_libc_version ());
+ printf ("GNU libc release: %s\n", gnu_get_libc_release ());
+#endif
printf ("Using random seed %lu\n", seed);
/* (complex,complex) -> complex */
@@ -211,4 +218,3 @@ main (int argc, char *argv[])
return 0;
}
-