# HG changeset patch # User Bruno Haible # Date 1176461770 0 # Node ID 7d5ccae12ce7ad0f90ac9f081f9a2e45e9787e6c # Parent f33e67b8289e4af1d44a2e99c84d8340b120f125 Guard against FreeBSD 6.1 bug. diff --git a/tests/test-printf-posix.h b/tests/test-printf-posix.h --- 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 + */ + my_printf ("%010a %d\n", 1.0 / 0.0, 33, 44, 55); + + /* FLAG_ZERO with NaN. */ + /* "0000000nan 33" is not a valid result; see + */ + 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);