X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-dprintf-posix.c;h=414f8d42c0e0b65357dc9709c80ba8ffe39dd446;hb=3c7d5d0cf885baa9add1cd34364fa1adfc459630;hp=8133cbf6b6882e1c9308bd589e79a0880b225d3d;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/tests/test-dprintf-posix.c b/tests/test-dprintf-posix.c index 8133cbf6b..414f8d42c 100644 --- a/tests/test-dprintf-posix.c +++ b/tests/test-dprintf-posix.c @@ -1,5 +1,5 @@ /* Test of POSIX compatible dprintf() function. - Copyright (C) 2007-2010 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 @@ -27,6 +27,7 @@ SIGNATURE_CHECK (dprintf, int, (int, const char *, ...)); #include #include +#include "infinity.h" #include "macros.h" static void @@ -50,13 +51,13 @@ test_function (int (*my_dprintf) (int, const char *, ...)) my_dprintf (fileno (stdout), "%a %d\n", 0.0, 33, 44, 55); /* Positive infinity. */ - my_dprintf (fileno (stdout), "%a %d\n", 1.0 / 0.0, 33, 44, 55); + my_dprintf (fileno (stdout), "%a %d\n", Infinityd (), 33, 44, 55); /* Negative infinity. */ - my_dprintf (fileno (stdout), "%a %d\n", -1.0 / 0.0, 33, 44, 55); + my_dprintf (fileno (stdout), "%a %d\n", - Infinityd (), 33, 44, 55); /* FLAG_ZERO with infinite number. */ - my_dprintf (fileno (stdout), "%010a %d\n", 1.0 / 0.0, 33, 44, 55); + my_dprintf (fileno (stdout), "%010a %d\n", Infinityd (), 33, 44, 55); /* Test the support of the %f format directive. */