Avoid test failures on platforms where -0.0 and 0.0 are identical.
[pspp] / tests / test-printf-posix.h
index 367dba9abf36c0907124eb30daf2a702ea15425e..2f56487cdf7672ba3d717e3af2b8e3c2c6254e85 100644 (file)
@@ -37,9 +37,6 @@ test_function (int (*my_printf) (const char *, ...))
   /* Positive zero.  */
   my_printf ("%a %d\n", 0.0, 33, 44, 55);
 
-  /* Negative zero.  */
-  my_printf ("%a %d\n", -0.0, 33, 44, 55);
-
   /* Positive infinity.  */
   my_printf ("%a %d\n", 1.0 / 0.0, 33, 44, 55);
 
@@ -65,9 +62,6 @@ test_function (int (*my_printf) (const char *, ...))
   /* Positive zero.  */
   my_printf ("%f %d\n", 0.0, 33, 44, 55);
 
-  /* Negative zero.  */
-  my_printf ("%f %d\n", -0.0, 33, 44, 55);
-
   /* FLAG_ZERO.  */
   my_printf ("%015f %d\n", 1234.0, 33, 44, 55);
 
@@ -86,9 +80,6 @@ test_function (int (*my_printf) (const char *, ...))
   /* Positive zero.  */
   my_printf ("%Lf %d\n", 0.0L, 33, 44, 55);
 
-  /* Negative zero.  */
-  my_printf ("%Lf %d\n", -0.0L, 33, 44, 55);
-
   /* FLAG_ZERO.  */
   my_printf ("%015Lf %d\n", 1234.0L, 33, 44, 55);
 
@@ -109,9 +100,6 @@ test_function (int (*my_printf) (const char *, ...))
   /* Positive zero.  */
   my_printf ("%F %d\n", 0.0, 33, 44, 55);
 
-  /* Negative zero.  */
-  my_printf ("%F %d\n", -0.0, 33, 44, 55);
-
   /* FLAG_ZERO.  */
   my_printf ("%015F %d\n", 1234.0, 33, 44, 55);
 
@@ -130,9 +118,6 @@ test_function (int (*my_printf) (const char *, ...))
   /* Positive zero.  */
   my_printf ("%LF %d\n", 0.0L, 33, 44, 55);
 
-  /* Negative zero.  */
-  my_printf ("%LF %d\n", -0.0L, 33, 44, 55);
-
   /* FLAG_ZERO.  */
   my_printf ("%015LF %d\n", 1234.0L, 33, 44, 55);