X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-hypot.c;h=00399b7b1368d4523194e5f7d385659bcd01be66;hb=26c6620f1799962b5f31cb8d66e79d73762fd160;hp=d91dd1d2ae64db5f00fb537bf220cf9999caa9f2;hpb=278046bc2b1679664958c842e8495d01f6baf170;p=gnulib.git diff --git a/tests/test-hypot.c b/tests/test-hypot.c index d91dd1d2a..00399b7b1 100644 --- a/tests/test-hypot.c +++ b/tests/test-hypot.c @@ -1,5 +1,5 @@ /* Test of hypot() function. - Copyright (C) 2010 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,22 @@ #include "signature.h" SIGNATURE_CHECK (hypot, double, (double, double)); +#include + #include "macros.h" -volatile double x; -volatile double y; -double z; +#undef MIN +#undef MAX + +#define DOUBLE double +#define HUGEVAL HUGE_VAL +#define L_(literal) literal +#define MANT_DIG DBL_MANT_DIG +#define MIN DBL_MIN +#define MAX DBL_MAX +#define HYPOT hypot +#define RANDOM randomd +#include "test-hypot.h" int main () @@ -38,5 +49,7 @@ main () z = hypot (x, y); ASSERT (z >= 0.7211102550 && z <= 0.7211102551); + test_function (); + return 0; }