X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-log10l.c;h=8cb7015e9cd78b889ce903043412f6c0dbec92d8;hb=e7086a9a301ffcfef17edbcba9e7c0312c33f7a8;hp=1b89b07ed992db7d18cedf2e21a3494335591faf;hpb=1023ebbce80dcb7dba0b10da7f6a0b5d90bcf27f;p=gnulib.git diff --git a/tests/test-log10l.c b/tests/test-log10l.c index 1b89b07ed..8cb7015e9 100644 --- a/tests/test-log10l.c +++ b/tests/test-log10l.c @@ -1,5 +1,5 @@ /* Test of log10l() function. - Copyright (C) 2010-2012 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,11 +23,20 @@ #include "signature.h" SIGNATURE_CHECK (log10l, long double, (long double)); +#include + +#include "minus-zero.h" #include "fpucw.h" #include "macros.h" -volatile long double x; -long double y; +#define DOUBLE long double +#define HUGEVAL HUGE_VALL +#define MANT_DIG LDBL_MANT_DIG +#define L_(literal) literal##L +#define MINUS_ZERO minus_zerol +#define LOG10 log10l +#define RANDOM randoml +#include "test-log10.h" int main () @@ -41,5 +50,7 @@ main () y = log10l (x); ASSERT (y >= -0.2218487497L && y <= -0.2218487496L); + test_function (); + return 0; }