ldexp, ldexpf, ldexpl: Enhance tests.
authorBruno Haible <bruno@clisp.org>
Sun, 6 Nov 2011 12:52:30 +0000 (13:52 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 6 Nov 2011 12:52:30 +0000 (13:52 +0100)
commitdc57f70a80411608fee719971cc758a00a8eab63
tree4ea48a6012de2ee75144ac95e3c99321cd5c26b2
parentecaa75e473e24317c629b28380cd9b9658e5ac76
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.
ChangeLog
modules/ldexp-tests
modules/ldexpf-tests
modules/ldexpl-tests
tests/test-ldexp.c
tests/test-ldexp.h [new file with mode: 0644]
tests/test-ldexpf.c
tests/test-ldexpl.c