The 2007-04-04 patch was broken.
authorBruno Haible <bruno@clisp.org>
Wed, 11 Apr 2007 23:32:56 +0000 (23:32 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 11 Apr 2007 23:32:56 +0000 (23:32 +0000)
ChangeLog
m4/printf.m4

index 5d39800..1343530 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-04-11  Bruno Haible  <bruno@clisp.org>
+
+       * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
+
 2007-04-10  Bruno Haible  <bruno@clisp.org>
 
        * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
index d39b42f..d035172 100644 (file)
@@ -113,15 +113,15 @@ int main ()
     return 1;
   /* This catches a FreeBSD 6.1 bug: it doesn't round.  */
   if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0
-      || (strcmp (result, "0x1.83p+0 33") != 0
-          && strcmp (result, "0x3.05p-1 33") != 0
-          && strcmp (result, "0x6.0ap-2 33") != 0
-          && strcmp (result, "0xc.14p-3 33") != 0))
+      || (strcmp (buf, "0x1.83p+0 33") != 0
+          && strcmp (buf, "0x3.05p-1 33") != 0
+          && strcmp (buf, "0x6.0ap-2 33") != 0
+          && strcmp (buf, "0xc.14p-3 33") != 0))
     return 1;
   /* This catches a FreeBSD 6.1 bug.  See
      <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00107.html> */
   if (sprintf (buf, "%010a %d", 1.0 / 0.0, 33, 44, 55) < 0
-      || result[0] == '0')
+      || buf[0] == '0')
     return 1;
   /* This catches a MacOS X 10.3.9 (Darwin 7.9) bug.  */
   if (sprintf (buf, "%.1a", 1.999) < 0