tests/test-vasprintf-posix.c


Log

Author Commit Date CI Message
Bruno Haible e8e63d1b 2009-02-24T04:10:02 vasnprintf: Fix invalid read past end of memory block.
Eric Blake b7cb23a6 2009-01-12T06:52:18 tests: IRIX 6.2 cc can't compile -0.0 into .data * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime, rather than at compile-time. * tests/test-floorl.c (minus_zero): Likewise. * tests/test-frexpl.c (minus_zero): Likewise. * tests/test-isnan.c (minus_zerol): Likewise. * tests/test-isnanl.h (minus_zero): Likewise. * tests/test-ldexpl.c (minus_zero): Likewise. * tests/test-roundl.c (minus_zero): Likewise. * tests/test-signbit.c (minus_zerol): Likewise. * tests/test-snprintf-posix.h (minus_zerol): Likewise. * tests/test-sprintf-posix.h (minus_zerol): Likewise. * tests/test-truncl.c (minus_zero): Likewise. * tests/test-vasnprintf-posix.c (minus_zerol): Likewise. * tests/test-vasprintf-posix.c (minus_zerol): Likewise. Reported by Tom G. Christensen and Nelson H. F. Beebe. Signed-off-by: Eric Blake <ebb9@byu.net>
Jim Meyering ee5c41a1 2009-01-04T20:59:12 remove duplicate inclusion of <stdio.h> * tests/test-fprintf-posix.c: Likewise. * tests/test-printf-posix.c: Likewise. * tests/test-snprintf-posix.c: Likewise. * tests/test-sprintf-posix.c: Likewise. * tests/test-vasprintf-posix.c: Likewise. * tests/test-vfprintf-posix.c: Likewise. * tests/test-vprintf-posix.c: Likewise. * tests/test-vsnprintf-posix.c: Likewise. * tests/test-vsprintf-posix.c: Likewise.
Bruno Haible 9d5d03ff 2008-10-18T03:15:17 Avoid compilation error due to MacOS X 10.5 gcc cross-compilation bug.
Bruno Haible ea0f5bf6 2008-10-08T02:05:26 Use a more portable replacement expression for -0.0L.
Bruno Haible ebda2086 2008-09-21T17:17:43 Allow 3-digit exponents in %e and %g results on 'long double'.
Eric Blake 48f8acca 2008-09-01T21:28:44 vasnprintf-posix: handle large precision via %.*d * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf when handling it ourselves. * tests/test-vasnprintf-posix.c (test_function): Add test. * tests/test-snprintf-posix.h (test_function): Likewise. * tests/test-sprintf-posix.h (test_function): Likewise. * tests/test-vasprintf-posix.c (test_function): Likewise. Reported by Alain Guibert. Signed-off-by: Eric Blake <ebb9@byu.net>
Bruno Haible 4eb59b32 2008-08-01T11:30:27 Work around bug of HP-UX 10.20 cc with -0.0 literal.
Bruno Haible f797ae74 2008-04-19T17:26:36 Fix rounding when a precision is given.
Bruno Haible e220635f 2008-04-11T16:31:39 Flush the standard error stream before aborting.
Bruno Haible 0a565096 2008-04-02T03:06:02 Use macros NaNf, NaNd, NaNl instead of NAN.
Eric Blake 06945b7c 2008-03-31T20:56:25 Guarantee a definition of NAN. * lib/math.in.h (NAN): Define if missing. * tests/test-math.c (main): Test it. * doc/posix-headers/math.texi (math.h): Document this. * lib/isnan.c (rpl_isnand): Use it. * tests/test-ceilf1.c (NaN): Delete, and use NAN instead. * tests/test-floorf1.c (NaN): Likewise. * tests/test-frexp.c (NaN): Likewise. * tests/test-isnand.c (NaN): Likewise. * tests/test-isnanf.c (NaN): Likewise. * tests/test-round1.c (NaN): Likewise. * tests/test-roundf1.c (NaN): Likewise. * tests/test-snprintf-posix.h (NaN): Likewise. * tests/test-sprintf-posix.h (NaN): Likewise. * tests/test-trunc1.c (NaN): Likewise. * tests/test-truncf1.c (NaN): Likewise. * tests/test-vasnprintf-posix.c (NaN): Likewise. * tests/test-vasprintf-posix.c (NaN): Likewise. * modules/isnand-nolibm (Depends-on): Add math. * modules/isnanf-nolibm (Depends-on): Likewise. * modules/isnanl (Depends-on): Likewise. * modules/isnanl-nolibm (Depends-on): Likewise. * modules/snprintf-posix-tests (Depends-on): Likewise. * modules/sprintf-posix-tests (Depends-on): Likewise. * modules/vsnprintf-posix-tests (Depends-on): Likewise. * modules/vsprintf-posix-tests (Depends-on): Likewise. * modules/vasnprintf-posix-tests (Depends-on): Likewise. * modules/vasprintf-posix-tests (Depends-on): Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
Bruno Haible 6cad9c91 2008-02-07T02:08:13 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
Bruno Haible fe5143cd 2007-11-04T19:43:13 Add tests for large precisions.
Bruno Haible 57fdfd3f 2007-10-07T19:14:58 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible ee6d9baa 2007-06-06T02:20:57 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
Eric Blake c0fea97c 2007-05-28T16:49:41 Unconditionally include <config.h> in unit tests. * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H. * tests/test-allocsa.c, tests/test-arcfour.c, tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c, tests/test-array_list.c, tests/test-array_oset.c, tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c, test-avltreehash_list.c, test-base64.c, test-binary-io.c, test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c, test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c, test-carray_list.c, test-crc.c, test-des.c, test-dirname.c, test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c, test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c, test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c, test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c, test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c, test-iconv.c, test-linked_list.c, test-linkedhash_list.c, test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c, test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c, test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c, test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c, test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c, test-md5.c, test-memmem.c, test-printf-posix.c, test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c, test-read-file.c, test-rijndael.c, test-snprintf-posix.c, test-snprintf.c, test-sprintf-posix.c, test-stdint.c, test-strcasestr.c, test-striconv.c, test-striconveh.c, test-striconveha.c, test-tls.c, test-vasnprintf-posix.c, test-vasnprintf-posix2.c, test-vasnprintf.c, test-vasprintf-posix.c, test-vasprintf.c, test-verify.c, test-vfprintf-posix.c, test-vprintf-posix.c, test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c, test-xvasprintf.c: Likewise.
Bruno Haible dcbb9e70 2007-05-24T10:10:51 Allow for a longer printed representation of NaN.
Bruno Haible 17ccaa9d 2007-05-22T01:07:46 Stricter check for printf result for NaN arguments.
Bruno Haible 90645850 2007-05-20T08:12:26 Avoid test failures on some versions of HP-UX 11.
Bruno Haible e10764b1 2007-05-19T22:57:58 Avoid test failures on platforms where -0.0 and 0.0 are identical.
Bruno Haible b65d227a 2007-05-19T22:22:21 Avoid test failures on IRIX 6.5.
Bruno Haible cf853861 2007-05-19T10:22:11 Accomodate for implementations that produce 3 exponent digits in %e and %g.
Bruno Haible 48e570fe 2007-05-18T23:37:50 Add tests for %e and %g directives.
Bruno Haible 13123792 2007-05-18T22:10:17 More tests of printf %f.
Bruno Haible e9bb2308 2007-05-06T23:02:10 Work around an incorrect implementation of the 0 flag on most platforms.
Bruno Haible 2bb894ab 2007-05-06T15:29:04 Work around lack of support of grouping flag.
Bruno Haible 75d14636 2007-04-29T09:15:13 Better ASSERT macro.
Bruno Haible d6f27950 2007-04-13T16:56:08 Add tests for %f and %F directives.
Bruno Haible f1d7a8f4 2007-04-11T00:24:01 Guard against FreeBSD 6.1 bug.
Bruno Haible 9f88c0b0 2007-04-06T14:36:56 Assume 'long double' exists.
Bruno Haible 473a9b7d 2007-04-05T00:27:44 FreeBSD 6.1 produces different printf output than glibc.
Simon Josefsson 6e2afe5a 2007-03-27T20:18:17 Move vasprintf prototypes to stdio.
Bruno Haible 6136fd62 2007-03-25T19:56:22 Work around a DEC C compiler bug.
Bruno Haible 55cd56d8 2007-03-05T03:20:23 Test a corner case. Exclude two buggy implementations.
Bruno Haible c284d39d 2007-03-05T00:39:01 Tests for module 'vasprintf-posix'.