md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
[gnulib.git] / tests / test-modf.c
index c845662..6ee16c7 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of modf() function.
-   Copyright (C) 2010-2011 Free Software Foundation, Inc.
+   Copyright (C) 2010-2013 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 #include "signature.h"
 SIGNATURE_CHECK (modf, double, (double, double *));
 
+#include <float.h>
+
 #include "macros.h"
 
-volatile double x;
-double y;
-double z;
+#define DOUBLE double
+#define L_(literal) literal
+#define MANT_DIG DBL_MANT_DIG
+#define MODF modf
+#define RANDOM randomd
+#include "test-modf.h"
 
 int
 main ()
@@ -44,5 +49,7 @@ main ()
   ASSERT (y >= -0.972406761 && y <= -0.972406759);
   ASSERT (z == -5.0);
 
+  test_function ();
+
   return 0;
 }