X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-sqrt.c;h=18aee2dd769161ab2dd8f7b4d5bb502dbf8422dd;hb=bbfcd2f1a92c9bdbb8d7d7d0a8a8c6665c316747;hp=ba61c8bc1895f3183d0115a0c170ca99c1fc1dc1;hpb=111daf909494cd76a73a84beb4b2dc9ca4254e43;p=gnulib.git diff --git a/tests/test-sqrt.c b/tests/test-sqrt.c index ba61c8bc1..18aee2dd7 100644 --- a/tests/test-sqrt.c +++ b/tests/test-sqrt.c @@ -1,5 +1,5 @@ /* Test of sqrt() function. - Copyright (C) 2010 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 @@ -23,10 +23,16 @@ #include "signature.h" SIGNATURE_CHECK (sqrt, double, (double)); +#include + #include "macros.h" -volatile double x; -double y; +#define DOUBLE double +#define L_(literal) literal +#define MANT_DIG DBL_MANT_DIG +#define SQRT sqrt +#define RANDOM randomd +#include "test-sqrt.h" int main () @@ -36,5 +42,7 @@ main () y = sqrt (x); ASSERT (y >= 0.7745966692 && y <= 0.7745966693); + test_function (); + return 0; }