changeset 8681:7d5ccae12ce7

Guard against FreeBSD 6.1 bug.
author Bruno Haible <bruno@clisp.org>
date Fri, 13 Apr 2007 10:56:10 +0000
parents f33e67b8289e
children 0b98a4edecb2
files tests/test-printf-posix.h
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-printf-posix.h
+++ b/tests/test-printf-posix.h
@@ -61,6 +61,16 @@
   /* 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);