Mercurial > hg > octave-lojdl > gnulib-hg
changeset 9849:ab48b8591214
Update test results on OSF/1.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 01 Apr 2008 01:37:42 +0200 |
parents | 3dbacd929304 |
children | 7f3ed6b093be |
files | ChangeLog doc/posix-functions/strtod.texi tests/test-strtod.c |
diffstat | 3 files changed, 10 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-31 Bruno Haible <bruno@clisp.org> + + * tests/test-strtod.c (main): Update results for OSF/1 platforms. + * doc/posix-functions/strtod.texi: Likewise. + 2008-03-31 Bruno Haible <bruno@clisp.org> * tests/test-strtod.c (main): Don't use C99 syntax.
--- a/doc/posix-functions/strtod.texi +++ b/doc/posix-functions/strtod.texi @@ -35,7 +35,7 @@ @item This function returns +0.0 (not -0.0) for @samp{-0} on some platforms: -IRIX 6.5. +IRIX 6.5, OSF/1 4.0. @item This function fails to parse Infinities and plain NaNs on some platforms:
--- a/tests/test-strtod.c +++ b/tests/test-strtod.c @@ -305,7 +305,7 @@ errno = 0; result = strtod (input, &ptr); ASSERT (result == 0.0); - ASSERT (!!signbit (result) == !!signbit (-0.0)); /* IRIX 6.5 */ + ASSERT (!!signbit (result) == !!signbit (-0.0)); /* IRIX 6.5, OSF/1 4.0 */ ASSERT (ptr == input + 2); ASSERT (errno == 0); } @@ -400,7 +400,7 @@ errno = 0; result = strtod (input, &ptr); ASSERT (result == 0.0); - ASSERT (!!signbit (result) == !!signbit (-0.0)); /* MacOS X 10.3, FreeBSD 6.2, IRIX 6.5 */ + ASSERT (!!signbit (result) == !!signbit (-0.0)); /* MacOS X 10.3, FreeBSD 6.2, IRIX 6.5, OSF/1 4.0 */ ASSERT (ptr == input + 2); /* glibc-2.3.6, MacOS X 10.3, FreeBSD 6.2 */ ASSERT (errno == 0); } @@ -489,7 +489,7 @@ errno = 0; result = strtod (input, &ptr); ASSERT (result == HUGE_VAL); - ASSERT (ptr == input + 9); + ASSERT (ptr == input + 9); /* OSF/1 5.1 */ ASSERT (errno == ERANGE); } { @@ -894,7 +894,7 @@ errno = 0; result = strtod (input, &ptr); ASSERT (result == 0.0); - ASSERT (!!signbit (result) == !!signbit (-0.0)); /* IRIX 6.5 */ + ASSERT (!!signbit (result) == !!signbit (-0.0)); /* IRIX 6.5, OSF/1 4.0 */ ASSERT (ptr == input + m); ASSERT (errno == 0); }