X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-log1p.c;h=d71a8e354da4b500d0152d3aca3e463f23c28e9b;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=e6c4e693b4b660d27640b63e71b2d37f5149ae29;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/tests/test-log1p.c b/tests/test-log1p.c index e6c4e693b..d71a8e354 100644 --- a/tests/test-log1p.c +++ b/tests/test-log1p.c @@ -1,5 +1,5 @@ /* Test of log1p() function. - Copyright (C) 2010-2011 Free Software Foundation, Inc. + Copyright (C) 2010-2014 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,17 @@ #include "signature.h" SIGNATURE_CHECK (log1p, double, (double)); +#include + #include "macros.h" -volatile double x; -double y; +#define DOUBLE double +#define HUGEVAL HUGE_VAL +#define L_(literal) literal +#define MANT_DIG DBL_MANT_DIG +#define LOG1P log1p +#define RANDOM randomd +#include "test-log1p.h" int main () @@ -36,5 +43,7 @@ main () y = log1p (x); ASSERT (y >= 0.4700036292 && y <= 0.4700036293); + test_function (); + return 0; }