]> Savannah Git Hosting - gnulib.git/commitdiff
log10f tests: More tests.
authorBruno Haible <bruno@clisp.org>
Sat, 31 Mar 2012 19:41:32 +0000 (21:41 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 1 Apr 2012 14:37:07 +0000 (16:37 +0200)
* modules/log10f-tests (Files): Add tests/test-log10.h,
tests/minus-zero.h, tests/randomf.c.
(Makefile.am): Add randomf.c to test_log10f_SOURCES.
* tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
(main): Invoke test_function.

ChangeLog
modules/log10f-tests
tests/test-log10f.c

index f4b570b180d19c75124b9289c7ad959f7a031d26..41fdb7deb2ccdd24ffe219316db34a2cfff0728e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2012-03-31  Bruno Haible  <bruno@clisp.org>
 
+       log10f tests: More tests.
+       * modules/log10f-tests (Files): Add tests/test-log10.h,
+       tests/minus-zero.h, tests/randomf.c.
+       (Makefile.am): Add randomf.c to test_log10f_SOURCES.
+       * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
+       (main): Invoke test_function.
+
        log10 tests: More tests.
        * tests/test-log10.h: New file.
        * modules/log10-tests (Files): Add tests/test-log10.h,
index 1cd295cd3f98a5160dbb99bde3737647d669f75a..cfe131d666a0f1a9aec7d5f6b938c2f0c12d1352 100644 (file)
@@ -1,7 +1,10 @@
 Files:
 tests/test-log10f.c
+tests/test-log10.h
+tests/minus-zero.h
 tests/signature.h
 tests/macros.h
+tests/randomf.c
 
 Depends-on:
 
@@ -10,4 +13,5 @@ configure.ac:
 Makefile.am:
 TESTS += test-log10f
 check_PROGRAMS += test-log10f
+test_log10f_SOURCES = test-log10f.c randomf.c
 test_log10f_LDADD = $(LDADD) @LOG10F_LIBM@
index c403cf3e1423782409cadf9f2bc181cc5d36877d..c0a92ada5c3c5b519011653284169af17a00d2d9 100644 (file)
 #include "signature.h"
 SIGNATURE_CHECK (log10f, float, (float));
 
+#include <float.h>
+
+#include "minus-zero.h"
 #include "macros.h"
 
-volatile float x;
-float y;
+#define DOUBLE float
+#define HUGEVAL HUGE_VALF
+#define L_(literal) literal##f
+#define MANT_DIG FLT_MANT_DIG
+#define MINUS_ZERO minus_zerof
+#define LOG10 log10f
+#define RANDOM randomf
+#include "test-log10.h"
 
 int
 main ()
@@ -36,5 +45,7 @@ main ()
   y = log10f (x);
   ASSERT (y >= -0.2218488f && y <= -0.2218487f);
 
+  test_function ();
+
   return 0;
 }