X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-fabs.c;h=c5566cfcb0a38ce705cd6a329f5e1f51cb0c629c;hb=cbc11ff0020eb9c04caea6b3e7dc4e4281dff1f9;hp=c7da947de20cac280787f309a4862f4bb633bc0e;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/tests/test-fabs.c b/tests/test-fabs.c index c7da947de..c5566cfcb 100644 --- a/tests/test-fabs.c +++ b/tests/test-fabs.c @@ -1,5 +1,5 @@ /* Test of fabs() 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,17 @@ #include "signature.h" SIGNATURE_CHECK (fabs, double, (double)); +#include + #include "macros.h" +#include "minus-zero.h" -volatile double x; -double y; +#define DOUBLE double +#define L_(literal) literal +#define MINUS_ZERO minus_zerod +#define FABS fabs +#define RANDOM randomd +#include "test-fabs.h" int main () @@ -41,5 +48,7 @@ main () y = fabs (x); ASSERT (y == 0.6); + test_function (); + return 0; }