[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: another platform *printf bug
From: |
Bruno Haible |
Subject: |
Re: another platform *printf bug |
Date: |
Fri, 13 Apr 2007 12:56:16 +0200 |
User-agent: |
KMail/1.5.4 |
Eric Blake wrote:
> gnulib-tool --with-tests --test printf-posix
>
> still failed with:
>
> 9,10d8
> < inf 33
> < nan 33
> FAIL: test-printf-posix.sh
Oops, I forgot to commit a change. Already mentioned in the 2007-04-10
ChangeLog entry.
*** tests/test-printf-posix.h 6 Apr 2007 03:44:35 -0000 1.3
--- tests/test-printf-posix.h 13 Apr 2007 10:53:46 -0000
***************
*** 61,66 ****
--- 61,76 ----
/* NaN. */
my_printf ("%a %d\n", NaN (), 33, 44, 55);
+ /* FLAG_ZERO with infinite number. */
+ /* "0000000inf 33" is not a valid result; see
+ <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00107.html> */
+ my_printf ("%010a %d\n", 1.0 / 0.0, 33, 44, 55);
+
+ /* FLAG_ZERO with NaN. */
+ /* "0000000nan 33" is not a valid result; see
+ <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00107.html> */
+ my_printf ("%010a %d\n", NaN (), 33, 44, 55);
+
/* Test the support of the POSIX/XSI format strings with positions. */
my_printf ("%2$d %1$d\n", 33, 55);