summaryrefslogtreecommitdiff
path: root/modules/round-ieee-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-12-21 18:55:59 +0100
committerBruno Haible <bruno@clisp.org>2010-12-21 22:49:36 +0100
commit9b144e908f361bc95b309fd33bfa0bc09ae55cc7 (patch)
tree88832f347ed85acd0a4f35e2de2077e37aae452c /modules/round-ieee-tests
parent0c5e7922f80eae16b5a89233d5a8c0d1f88c18a7 (diff)
downloadgnulib-9b144e908f361bc95b309fd33bfa0bc09ae55cc7.tar.gz
New module 'round-ieee'.
* modules/round-ieee: New file. * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test whether round works according to ISO C 99 with IEC 60559. * m4/round-ieee.m4: New file. * modules/round-ieee-tests: New file. * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c. * tests/test-round1.c (main): Remove signbit tests. * modules/round-tests (Depends-on): Remove 'signbit'. * doc/posix-functions/round.texi: Mention the new module.
Diffstat (limited to 'modules/round-ieee-tests')
-rw-r--r--modules/round-ieee-tests15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/round-ieee-tests b/modules/round-ieee-tests
new file mode 100644
index 0000000000..6e32da51bc
--- /dev/null
+++ b/modules/round-ieee-tests
@@ -0,0 +1,15 @@
+Files:
+tests/test-round-ieee.c
+tests/minus-zero.h
+tests/macros.h
+
+Depends-on:
+float
+signbit
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-round-ieee
+check_PROGRAMS += test-round-ieee
+test_round_ieee_LDADD = $(LDADD) @ROUND_LIBM@