X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-isnand.h;h=de69331efda6df42e5db92d447892a07bc0cf0fd;hb=422ab2e0d70ed348e2fd0a82558be38e5859011a;hp=cf8cb5d4ba8794e6f19dc9e1126a0547ae20804a;hpb=fc11af0a623e95f1c0dc57aa56c134e380752770;p=gnulib.git diff --git a/tests/test-isnand.h b/tests/test-isnand.h index cf8cb5d4b..de69331ef 100644 --- a/tests/test-isnand.h +++ b/tests/test-isnand.h @@ -1,5 +1,5 @@ /* Test of isnand() substitute. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-2011 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 @@ -17,22 +17,10 @@ /* Written by Bruno Haible , 2007. */ #include -#include -#include +#include "minus-zero.h" #include "nan.h" - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main () @@ -45,7 +33,7 @@ main () ASSERT (!isnand (-2.718e30)); ASSERT (!isnand (-2.718e-30)); ASSERT (!isnand (0.0)); - ASSERT (!isnand (-0.0)); + ASSERT (!isnand (minus_zerod)); /* Infinite values. */ ASSERT (!isnand (1.0 / 0.0)); ASSERT (!isnand (-1.0 / 0.0));