X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sqrtf.c;h=40abde6cf538aca188420c1b0c0c12b357a12d7e;hb=200969d8ebed76c9b82837406a87cc767fafac1b;hp=514eb7e5f2a6b2ac7107fcd78050e6042a26684b;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/tests/test-sqrtf.c b/tests/test-sqrtf.c index 514eb7e5f..40abde6cf 100644 --- a/tests/test-sqrtf.c +++ b/tests/test-sqrtf.c @@ -23,10 +23,16 @@ #include "signature.h" SIGNATURE_CHECK (sqrtf, float, (float)); +#include + #include "macros.h" -volatile float x; -float y; +#define DOUBLE float +#define L_(literal) literal##f +#define MANT_DIG FLT_MANT_DIG +#define SQRT sqrtf +#define RANDOM randomf +#include "test-sqrt.h" int main () @@ -36,5 +42,7 @@ main () y = sqrtf (x); ASSERT (y >= 0.7745966f && y <= 0.7745967f); + test_function (); + return 0; }