Mercurial > gnulib
changeset 39879:0e5d728c0fd7
vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
* tests/test-vasnprintf.c (test_function): Change the test added on
2018-09-23 to check only the 18 most significant digits.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 03 Oct 2018 02:56:57 +0200 |
parents | 4af9ded9afba |
children | dfddbe1350b4 |
files | ChangeLog tests/test-vasnprintf.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Oct 02 10:50:42 2018 +0200 +++ b/ChangeLog Wed Oct 03 02:56:57 2018 +0200 @@ -1,5 +1,9 @@ 2018-10-02 Bruno Haible <bruno@clisp.org> + vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX. + * tests/test-vasnprintf.c (test_function): Change the test added on + 2018-09-23 to check only the 18 most significant digits. + vasnprintf tests: Avoid test failure on Cygwin. * tests/test-vasnprintf.c (test_function): Change the test added on 2018-09-23 to check only the 42 most significant digits.
--- a/tests/test-vasnprintf.c Tue Oct 02 10:50:42 2018 +0200 +++ b/tests/test-vasnprintf.c Wed Oct 03 02:56:57 2018 +0200 @@ -74,9 +74,11 @@ 163141592653589790215729350939528493057529598899734151772468186268423257777068536614838678161083520756952076273094236944990208 On Cygwin, the result is 163141592653589790215729350939528493057529600000000000000000000000000000000000000000000000000000000000000000000000000000000000 + On HP-UX 11.31 / hppa and IRIX 6.5, the result is + 163141592653589790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 */ ASSERT (strlen (result) == 126); - ASSERT (memcmp (result, "163141592653589790215729350939528493057529", 42) == 0); + ASSERT (memcmp (result, "163141592653589790", 18) == 0); ASSERT (length == 126); if (size < 126 + 1) ASSERT (result != buf);