X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-sqrt.c;h=b317eb7ccfdbf0811d6662e80c1fb70cbebfafe9;hb=08998910dd73aad59b78886ab01ab96f7d1e9c38;hp=ba61c8bc1895f3183d0115a0c170ca99c1fc1dc1;hpb=111daf909494cd76a73a84beb4b2dc9ca4254e43;p=gnulib.git diff --git a/tests/test-sqrt.c b/tests/test-sqrt.c index ba61c8bc1..b317eb7cc 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-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 (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; }