X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-ceil1.c;h=bcae09af363a3f92a7c2fa9496a167613eec82cb;hb=fd27e50d9f01023121aa5d01fb24d8e7dd39392a;hp=7d4d325a7250923e25fe99fdb0d5158cbc88b6e9;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/tests/test-ceil1.c b/tests/test-ceil1.c index 7d4d325a7..bcae09af3 100644 --- a/tests/test-ceil1.c +++ b/tests/test-ceil1.c @@ -1,5 +1,5 @@ /* Test of rounding towards positive infinity. - Copyright (C) 2007-2011 Free Software Foundation, Inc. + Copyright (C) 2007-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 @@ -27,6 +27,7 @@ SIGNATURE_CHECK (ceil, double, (double)); #include "isnand-nolibm.h" #include "minus-zero.h" +#include "infinity.h" #include "nan.h" #include "macros.h" @@ -58,8 +59,8 @@ main () ASSERT (ceil (-65536.0) == -65536.0); ASSERT (ceil (-2.341e31) == -2.341e31); /* Infinite numbers. */ - ASSERT (ceil (1.0 / 0.0) == 1.0 / 0.0); - ASSERT (ceil (-1.0 / 0.0) == -1.0 / 0.0); + ASSERT (ceil (Infinityd ()) == Infinityd ()); + ASSERT (ceil (- Infinityd ()) == - Infinityd ()); /* NaNs. */ ASSERT (isnand (ceil (NaNd ())));