On Sun, Jan 13, 2008 at 05:30:55PM +0100, Bruno Haible wrote: > > Here's his report (the message I was replying > > to, on bug-coreutils), including verbose logs: > > > > http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/12292 > > OK, test-frexpl.c:137 and test-printf-frexpl.c:96. Then what's the value of > 'i' > at the moment when it fails? > > Bruno
I've attached two patches to illustrate what I did. They both yield "i == -16382". -- Elias
yields "i == -16382" when the assertion fails
--- coreutils-6.9.92/gnulib-tests/test-frexpl.c
+++ coreutils-6.9.92/gnulib-tests/test-frexpl.c
@@ -134,6 +134,9 @@
{
int exp = -9999;
long double mantissa = frexpl (x, &exp);
+ if (exp != i) {
+ printf("i == %d\n",i);
+ }
ASSERT (exp == i);
ASSERT (mantissa == 0.5L);
}
yields "i == -16382" when the assertion fails
--- coreutils-6.9.92/gnulib-tests/test-printf-frexpl.c
+++ coreutils-6.9.92/gnulib-tests/test-printf-frexpl.c
@@ -93,6 +93,9 @@
int exp = -9999;
long double mantissa = printf_frexpl (x, &exp);
ASSERT (exp == LDBL_MIN_EXP - 1);
+ if (mantissa != my_ldexp (1.0L, i - LDBL_MIN_EXP)) {
+ printf("i == %d\n",i);
+ }
ASSERT (mantissa == my_ldexp (1.0L, i - LDBL_MIN_EXP));
}
pgpksOGfxJUdW.pgp
Description: PGP signature
