diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 5 | ||||
-rw-r--r-- | tests/asin.dat | 2 | ||||
-rw-r--r-- | tests/tio_str.c | 6 | ||||
-rw-r--r-- | tests/tpow_ld.c | 5 |
4 files changed, 12 insertions, 6 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 77e5866..61e5583 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -25,8 +25,9 @@ AM_LDFLAGS = -no-install # LOADLIBES (documented in the "GNU make" manual and equivalent to LDLIBS) # enables to compile a program foo.c in the test directory by simply doing # "make foo". -LOADLIBES=$(DEFS) -I$(top_srcdir)/src -I$(top_builddir) $(CPPFLAGS) \ - $(CFLAGS) -L$(top_builddir)/tests/.libs -lmpc-tests -lmpc -lm $(LIBS) +LOADLIBES=$(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) \ + $(top_builddir)/tests/.libs/libmpc-tests.a \ + $(top_builddir)/src/.libs/libmpc.a $(LIBS) check_PROGRAMS = tabs tacos tacosh tadd tadd_fr tadd_si tadd_ui targ \ tasin tasinh tatan tatanh tconj tcos tcosh tdiv tdiv_2si tdiv_2ui \ diff --git a/tests/asin.dat b/tests/asin.dat index 9793fcc..e93e8c5 100644 --- a/tests/asin.dat +++ b/tests/asin.dat @@ -124,3 +124,5 @@ + - 53 0x189BF9EC7FCD5Bp-54 53 0x1206ECFA94614Bp-50 53 17 53 42 N N - + 2 1.5 2 6 2 96 2 0x1p-8 N N - - 8 0xC9p-7 8 0x15p-2 2 96 2 0x1p-8 N N +- - 53 0x3243f6a8885a3p-49 53 0x1p-500 53 1 53 0x1p-1000 N N +- + 53 0x3243f6a8885a3p-49 53 -0x1p-500 53 1 53 -0x1p-1000 N N diff --git a/tests/tio_str.c b/tests/tio_str.c index b7daf9d..b4e0c34 100644 --- a/tests/tio_str.c +++ b/tests/tio_str.c @@ -1,6 +1,6 @@ /* tio_str-- Test file for mpc_inp_str and mpc_out_str. -Copyright (C) 2009, 2011, 2013 INRIA +Copyright (C) 2009, 2011, 2013, 2014 INRIA This file is part of GNU MPC. @@ -21,9 +21,9 @@ along with this program. If not, see http://www.gnu.org/licenses/ . #include "mpc-tests.h" #ifdef HAVE_UNISTD_H -#if !defined _POSIX_C_SOURCE +#ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 1 /* apparently needed on Darwin */ -#endif /* _POSIX_C_SOURCE */ +#endif #include <unistd.h> /* for dup, dup2, STDIN_FILENO and STDOUT_FILENO */ #else #define STDIN_FILENO 0 diff --git a/tests/tpow_ld.c b/tests/tpow_ld.c index a02ea6e..a4e3ab9 100644 --- a/tests/tpow_ld.c +++ b/tests/tpow_ld.c @@ -1,6 +1,6 @@ /* tpow_ld -- test file for mpc_pow_ld. -Copyright (C) 2009 INRIA +Copyright (C) 2009, 2014 INRIA This file is part of GNU MPC. @@ -33,6 +33,9 @@ main (void) if (mpc_cmp_si_si (z, -9, 46) != 0) { printf ("Error for mpc_pow_ld (1)\n"); + printf ("expected (-9 46)\ngot "); + mpc_out_str (stdout, 10, 0, z, MPC_RNDNN); + printf ("\n"); exit (1); } mpc_clear (z); |