summaryrefslogtreecommitdiff
path: root/modules/ldexp-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-11-06 13:52:30 +0100
committerBruno Haible <bruno@clisp.org>2011-11-06 13:52:30 +0100
commitdc57f70a80411608fee719971cc758a00a8eab63 (patch)
tree4ea48a6012de2ee75144ac95e3c99321cd5c26b2 /modules/ldexp-tests
parentecaa75e473e24317c629b28380cd9b9658e5ac76 (diff)
downloadgnulib-dc57f70a80411608fee719971cc758a00a8eab63.tar.gz
ldexp, ldexpf, ldexpl: Enhance tests.
* tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c and tests/test-ldexpl.c. * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP, MAX_EXP): New macros. Include test-ldexp.h. (main): Just call test_function. * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h, infinity.h, nan.h. (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP, MAX_EXP): New macros. Include test-ldexp.h. (x, y): Remove variables. (main): Just call test_function. * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h, infinity.h, nan.h. (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP, MAX_EXP): New macros. Include test-ldexp.h. (x, y): Remove variables. (main): Just call test_function. * modules/ldexpl-tests (Files): Add tests/test-ldexp.h. * modules/ldexp-tests (Files): Add tests/test-ldexp.h, tests/minus-zero.h, tests/infinity.h, tests/nan.h. (Depends-on): Add isnand-nolibm, signbit, float. * modules/ldexpf-tests (Files): Add tests/test-ldexp.h, tests/minus-zero.h, tests/infinity.h, tests/nan.h. (Depends-on): Add isnanf-nolibm, signbit, float.
Diffstat (limited to 'modules/ldexp-tests')
-rw-r--r--modules/ldexp-tests7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/ldexp-tests b/modules/ldexp-tests
index e5d796cb1c..bd252cf505 100644
--- a/modules/ldexp-tests
+++ b/modules/ldexp-tests
@@ -1,9 +1,16 @@
Files:
tests/test-ldexp.c
+tests/test-ldexp.h
+tests/minus-zero.h
+tests/infinity.h
+tests/nan.h
tests/signature.h
tests/macros.h
Depends-on:
+isnand-nolibm
+signbit
+float
configure.ac: