log* tests: More tests.
[gnulib.git] / tests / test-logf.c
index 78777af..e9d0406 100644 (file)
 #include "signature.h"
 SIGNATURE_CHECK (logf, 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 LOG logf
+#define RANDOM randomf
+#include "test-log.h"
 
 int
 main ()
@@ -36,5 +45,7 @@ main ()
   y = logf (x);
   ASSERT (y >= -0.5108257f && y <= -0.5108256f);
 
+  test_function ();
+
   return 0;
 }