about summary refs log tree commit diff
path: root/sysdeps/x86/tst-ldbl-nonnormal-printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/x86/tst-ldbl-nonnormal-printf.c')
-rw-r--r--sysdeps/x86/tst-ldbl-nonnormal-printf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sysdeps/x86/tst-ldbl-nonnormal-printf.c b/sysdeps/x86/tst-ldbl-nonnormal-printf.c
index 54381ece0b..2b513960a7 100644
--- a/sysdeps/x86/tst-ldbl-nonnormal-printf.c
+++ b/sysdeps/x86/tst-ldbl-nonnormal-printf.c
@@ -42,10 +42,7 @@ do_test (void)
   char buf[30];
   int ret = snprintf (buf, sizeof (buf), "%Lg", value);
   TEST_COMPARE (ret, strlen (buf));
-  if (strcmp (buf, "nan") != 0)
-    /* If snprintf does not recognize the non-normal number as a NaN,
-       it has added the missing explicit MSB.  */
-    TEST_COMPARE_STRING (buf, "3.02201e-4624");
+  TEST_COMPARE_STRING (buf, "nan");
   return 0;
 }