X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-logf.c;h=40ff2c1eb1b2d2413e39083d39a314a70f250bec;hb=38e8c084b95e98c4e763df8cfc43a141aa93fc5f;hp=2ff5076a552669e4eda2ac8c8a2fd2d44000ee72;hpb=88587173921b74394414c5367294588052fc91a3;p=gnulib.git diff --git a/tests/test-logf.c b/tests/test-logf.c index 2ff5076a5..40ff2c1eb 100644 --- a/tests/test-logf.c +++ b/tests/test-logf.c @@ -1,5 +1,5 @@ /* Test of logf() function. - Copyright (C) 2010-2011 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,19 @@ #include "signature.h" SIGNATURE_CHECK (logf, float, (float)); +#include + +#include "minus-zero.h" #include "macros.h" -volatile float x; -float y; +#define DOUBLE float +#define HUGEVAL HUGE_VALF +#define L_(literal) literal##f +#define MANT_DIG FLT_MANT_DIG +#define MINUS_ZERO minus_zerof +#define LOG logf +#define RANDOM randomf +#include "test-log.h" int main () @@ -36,5 +45,7 @@ main () y = logf (x); ASSERT (y >= -0.5108257f && y <= -0.5108256f); + test_function (); + return 0; }