X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-expf.c;h=d7ae2858e7b749a8d3dfb99d4fc12570206d217f;hb=80a029602f5b2707ca8d2487843ecb9e0df74a6a;hp=ed7138395054a92433b06bf08cf2389409bb0c59;hpb=2408f02086a20c0a02241cd4a1cf11f126a95fe3;p=gnulib.git diff --git a/tests/test-expf.c b/tests/test-expf.c index ed7138395..d7ae2858e 100644 --- a/tests/test-expf.c +++ b/tests/test-expf.c @@ -1,5 +1,5 @@ /* Test of expf() 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 (expf, 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 EXP expf +#define RANDOM randomf +#include "test-exp.h" int main () @@ -36,5 +42,7 @@ main () y = expf (x); ASSERT (y >= 1.8221188f && y <= 1.8221189f); + test_function (); + return 0; }