X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sqrtf.c;h=40abde6cf538aca188420c1b0c0c12b357a12d7e;hb=3e11e8b98239cb2c468f2bf1a15a417ab0ba13fc;hp=ec8d5e8f52acd1e31d0e54acdadd945069cae0bb;hpb=ea614820d83bec9349aa8cbfdacbd09773ae5fd5;p=gnulib.git diff --git a/tests/test-sqrtf.c b/tests/test-sqrtf.c index ec8d5e8f5..40abde6cf 100644 --- a/tests/test-sqrtf.c +++ b/tests/test-sqrtf.c @@ -1,5 +1,5 @@ /* Test of sqrtf() function. - Copyright (C) 2010-2011 Free Software Foundation, Inc. + Copyright (C) 2010-2012 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 @@ -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; }