tests


Log

Author Commit Date CI Message
Eric Blake cef82862 2007-08-22T14:04:30 * tests/test-getdelim.c (main): Use remove, not unlink. * tests/test-getline.c (main): Likewise.
Eric Blake d68417c0 2007-08-22T12:54:21 Move getline and getdelim into stdio.h, per POSIX 200x. * modules/getline (Files): Remove getline.h. (Depends-on): Add stdio. (configure.ac): Add module indicator. * modules/getdelim (Files): Remove getdelim.h. (Depends-on): Add stdio. (configure.ac): Add module indicator. * modules/stdio (Makefile.am): Work with new indicators. * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults. * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs. * m4/getline.m4 (gl_FUNC_GETLINE): Likewise. * lib/getdelim.h: Delete. * lib/getline.h: Delete. * lib/stdio_.h (getdelim, getline): Declare. * modules/getdelim-tests: New module. * modules/getline-tests: Likewise. * tests/test-getdelim.c: New file. * tests/test-getline.c: Likewise. * NEWS: Document the change. * lib/getline.c: Update choice of header. * lib/csharpcomp.c: Likewise. * lib/getpass.c: Likewise. * lib/javacomp.c: Likewise. * lib/javaversion.c: Likewise. * lib/yesno.c: Likewise. * lib/getdelim.c: Likewise. (getdelim): Set errno on failure, and avoid memory leak.
Bruno Haible 5bca97ae 2007-08-19T17:43:56 Tests for module 'freadahead'.
Eric Blake 1cf55d29 2007-08-19T15:47:14 Test yesno in combination with closein. * lib/yesno.c (yesno): Document use of stdin. * modules/yesno-tests (Files): New module. * tests/test-yesno.c (main): New file. * tests/test-yesno.sh: Likewise.
Bruno Haible 757e397c 2007-08-19T09:10:56 Another lseek bug on BeOS.
Bruno Haible a669764b 2007-08-18T17:09:47 Test of fuzzy string matching.
Paul Eggert 50236f7a 2007-08-10T19:07:06 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise. * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
Paul Eggert e9c57721 2007-08-10T19:02:31 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal. * lib/xstrtol.h: Don't include exitfail.h; that's now internal to xstrtol.c. Include getopt.h, since xstrtol_fatal's signature depends on it. (xstrtol_error): Remove. (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error but with a different signature. (ATTRIBUTE_NORETURN, __attribute__): New macros. * lib/xstrtol-error.c: Include exitfail.h. (xstrtol_fatal): New function, with a different signature from the old xstrtol_error, so that the caller need not worry about passing in an exit status, or about storage management of the option argument. (xstrtol_error): Now a static function. Redo signature to implement xstrtol_fatal. Output the correct number of hyphens in front of the option so that the caller need not worry about storage management. (N_): New macro. (_): Remove; not used now. * modules/xstrtol: Depend on getopt. * tests/test-xstrtol.c (main): Use new xstrtol_error function instead of old STRTOL_FATAL_ERROR macro. * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior of test program.
Eric Blake c7110f3b 2007-08-08T12:45:54 Move xstrtol messages into gnulib domain, when --pobase is used. * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro... * lib/xstrtol-error.c (xstrtol_error): ...into new file. * modules/xstrtol (Files): Distribute new file. * m4/xstrtol.m4 (gl_XSTRTOL): Build new file. * lib/xstrtol.c (TESTING_XSTRTO): Move tests... * tests/test-xstrtol.c: ...into new file. * tests/test-xstrtoul.c: Also test xstrtoul. * tests/test-xstrtoimax.c: Also test xstrtoimax. * tests/test-xstrtoumax.c: Also test xstrtoumax. * tests/test-xstrtol.sh: Drive the tests. * tests/test-xstrtoimax.sh: Likewise. * tests/test-xstrtoumax.sh: Likewise. * modules/xstrtol-tests: New module. * modules/xstrtoimax-tests: Likewise. * modules/xstrtoumax-tests: Likewise.
Ben Pfaff e9cfd9f2 2007-07-25T03:13:19 Improve name: "count-one-bits" is better than "popcount". * MODULES.html.sh: Update name. * lib/popcount.h: Renamed lib/count-one-bits.h. (popcount): Renamed count_one_bits. (popcountl): Renamed count_one_bits_l. (popcountll): Renamed count_one_bits_ll. * m4/popcount.m4: Renamed m4/count-one-bits.m4. * modules/popcount: Renamed module/count-one-bits. * modules/popcount-tests: Renamed module/count-one-bits-tests. * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
Ben Pfaff da8a3eac 2007-07-23T00:21:20 New module: popcount. * MODULES.html.sh: Add popcount. * modules/popcount: New file. * modules/popcount-tests: New file. * tests/test-popcount.c: New file. * lib/popcount.h: New file. * m4/popcount.m4: New file.
Bruno Haible 0b34902e 2007-07-08T11:59:51 Update to Unicode 5.0.
Bruno Haible 7d084f9e 2007-07-07T21:39:09 Tests for module 'wcwidth'.
Bruno Haible c7a9d838 2007-07-07T16:28:30 Tests for module 'uniwidth/u32-strwidth'.
Bruno Haible 8a89913e 2007-07-07T16:26:55 Tests for module 'uniwidth/u16-strwidth'.
Bruno Haible 88c17eb1 2007-07-07T16:25:17 Tests for module 'uniwidth/u8-strwidth'.
Bruno Haible f8b39ef7 2007-07-07T16:22:35 Tests for module 'uniwidth/u32-width'.
Bruno Haible 83865790 2007-07-07T16:21:27 Tests for module 'uniwidth/u16-width'.
Bruno Haible 2082dd61 2007-07-07T16:19:55 Tests for module 'uniwidth/u8-width-tests'.
Bruno Haible e3c312ed 2007-07-07T16:17:48 Tests for module 'uniwidth/width'.
Bruno Haible 919363c0 2007-07-07T12:49:35 New modules uniname/base and uniname/uniname.
Eric Blake b432ad19 2007-07-06T14:22:21 Fix testing canonicalize on cygwin. * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD): Revert patch from 2007-06-19. * tests/test-canonicalize-lgpl.c (main): Instead, skip test when canonicalize module is also in use. * tests/test-canonicalize.c: New file. * tests/test-canonicalize.sh: Likewise. * modules/canonicalize-tests: Likewise.
Bruno Haible 2625ca90 2007-07-02T01:34:46 Formatted output functions for Unicode strings.
Bruno Haible a02ec12d 2007-06-23T11:20:11 Make use of ksh's 'print' built-in.
Bruno Haible 79c6120f 2007-06-23T10:14:04 Tweak comment.
Bruno Haible 47b0bff3 2007-06-23T09:52:08 Add better support for bash versions < 2.04.
Bruno Haible dbb82d29 2007-06-23T02:02:04 Test for the 'echo' command from gnulib-tool.
Bruno Haible 692c362e 2007-06-09T21:51:11 Tests for module 'uniconv/u32-conv-to-enc'.
Bruno Haible 0586925d 2007-06-09T21:50:29 Tests for module 'uniconv/u16-conv-to-enc'.
Bruno Haible b405c3b9 2007-06-09T21:49:07 Tests for module 'uniconv/u8-conv-to-enc'.
Bruno Haible 898f558e 2007-06-09T21:43:24 Remove unused and pointless code.
Bruno Haible 51a8911a 2007-06-09T11:02:52 Move to test-malloca.c.
Bruno Haible 988b3d18 2007-06-09T11:02:48 Move to here from test-allocsa.c.
Bruno Haible 555c3d66 2007-06-09T01:27:49 Add support for uClibc 0.9.29.
Bruno Haible 696055f8 2007-06-07T20:04:27 Tests for module 'localename'.
Bruno Haible ee6d9baa 2007-06-06T02:20:57 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
Bruno Haible 0c5d8a34 2007-06-06T02:02:41 Recognize non-IEEE numbers on i386, x86_64, ia64.
Bruno Haible b16230b7 2007-06-04T22:58:09 Avoid test failures on some PowerPC hardwares.
Bruno Haible 6e64ec2e 2007-06-02T01:55:30 Attempt to fix a test failure on Solaris (open fails with EACCES).
Bruno Haible 40a871a5 2007-06-02T00:42:13 Don't work around an lseek POSIX compliance bug on IRIX.
Eric Blake 7b090334 2007-05-31T03:21:00 Work around mingw test failures exposed by m4-1.4.9b. * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug. * tests/test-unistd.c: Disable uid_t and git_t tests for the moment.
Bruno Haible 136c0c98 2007-05-31T01:09:03 Explicitly close file descriptors where needed.
Bruno Haible 07a3879b 2007-05-30T00:41:42 Disable some tests for the moment.
Bruno Haible 789aa657 2007-05-28T17:17:33 Assume <config.h> exists.
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 2e7980e7 2007-05-28T15:16:56 Tests for module 'ftell'.
Bruno Haible bb9cffd5 2007-05-28T15:07:41 Tests for module 'fseek'.
Eric Blake d2d77c0e 2007-05-28T12:43:30 Improve lseek module. * lib/lseek.c (rpl_lseek): Detect EBADF on mingw. * lib/unistd_.h (lseek): Scale back link warning message. * tests/test-lseek.c: Beef up test. * tests/test-lseek.sh: Exercise more facets of lseek. Reported by Bruno Haible.
Bruno Haible af9f82f9 2007-05-28T12:36:21 Test some types.
Eric Blake e461ff73 2007-05-24T16:59:20 Fix lseek on mingw. * modules/lseek: New module. * m4/lseek.m4: New file. * lib/lseek.c: New file. * modules/lseek-tests: New file. * tests/test-lseek.c: New file. * tests/test-lseek.sh: New file. * MODULES.html.sh: Document lseek module. * modules/fflush (Depends-on): Add lseek, fseeko. * modules/fseeko (Depends-on): Likewise. * modules/ftello (Depends-on): Likewise. * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is broken. * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is broken. * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module. * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files. * lib/ftello.c (rpl_ftello): Likewise. * tests/test-fseeko.c (main): Test this. * tests/test-fseeko.sh: Likewise. * tests/test-ftello.c (main): Likewise. * tests/test-ftello.sh: Likewise. * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now implies replacing fseek. * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO, HAVE_FTELLO. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info. * modules/unistd (Makefile.am): Likewise. * lib/unistd_.h (lseek): Declare a replacement. * doc/functions/lseek.texi (lseek): Document this fix. * doc/functions/fseek.texi (fseek): Likewise. * doc/functions/ftell.texi (ftell): Likewise.
Bruno Haible dcbb9e70 2007-05-24T10:10:51 Allow for a longer printed representation of NaN.
Eric Blake cec93e99 2007-05-24T03:53:37 Fix fseeko/ftello on cygwin 1.5.24. * doc/functions/fseeko.texi (fseeko): Document the fix. * doc/functions/ftello.texi (ftello): Document the fix. * doc/functions/stdin.texi (stdin): Document the cygwin bug. * doc/functions/stdout.text (stdout): New file. * doc/functions/stderr.text (stderr): New file. * doc/gnulib.texi (Function Substitutes): Use new files. * tests/test-fseeko.c (main): Check for broken fseeko on cygwin prior to 1.7.0. * tests/test-ftello.c (main): Likewise for ftello. * tests/test-fseeko.sh: New file. * tests/test-ftello.sh: New file. * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run with seekable stdin. * modules/ftello-tests (Makefile.am): Likewise for test-ftello. * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug. (gl_REPLACE_FSEEKO): New macro. * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise. * modules/fseeko (Files): Distribute fseeko.c. * modules/ftello (Files): Distribute ftello.c. * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit mode. * lib/ftello.c (rpl_ftello): New file. * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of fseeko, ftello. (gl_STDIN_LARGE_OFFSET): New macro. * modules/stdio (Makefile.am): Perform the replacement. * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
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 e81beb20 2007-05-19T22:30:24 Avoid test failures on IRIX 6.5.
Bruno Haible b65d227a 2007-05-19T22:22:21 Avoid test failures on IRIX 6.5.
Bruno Haible b2be134b 2007-05-19T15:28:02 Avoid test failures on mingw.
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 85837d61 2007-05-17T09:18:53 Renamed test-fprintf-posix.out to test-printf-posix.output.
Bruno Haible 0a4d9780 2007-05-17T09:07:35 Move to test-printf-posix.output.
Bruno Haible 70f2c04b 2007-05-17T09:07:32 Move to here from test-fprintf-posix.out.
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 69868c22 2007-05-05T11:41:20 Avoid a test failure on mingw.
Bruno Haible d817cc5f 2007-05-01T22:17:02 Tests for module 'sleep'.
Sergey Poznyakoff 8e742963 2007-04-30T08:26:26 Restore #include "progname.h"
Sergey Poznyakoff 12dbbc0a 2007-04-30T08:26:11 (usage-indent test): Fix output (func_compare): Restore diff options
Bruno Haible f227e78a 2007-04-29T15:40:30 Guard against vsnprintf implementations that mishandle a size=0 argument.
Sergey Poznyakoff a7ebfd1c 2007-04-29T12:04:15 Update
Sergey Poznyakoff a75a52bb 2007-04-29T12:02:45 Fix option ordering. Test deeply clustered options.
Bruno Haible 2ca2dd68 2007-04-29T11:06:56 Make test a bit easier to debug.
Bruno Haible 75d14636 2007-04-29T09:15:13 Better ASSERT macro.
Bruno Haible 17fecfc4 2007-04-29T08:38:22 freading has an undefined value after repositioning a read-write stream.
Bruno Haible a5b4689f 2007-04-29T07:44:02 Oops, fix details and comments of last patch.
Bruno Haible 503e2514 2007-04-29T02:07:56 Make the tests sharper: also test the interaction with fflush().
Eric Blake 5c323b50 2007-04-27T17:14:39 Fix closein for mingw. * modules/closein-tests: Add tests for closein. * tests/test-closein.c: New file. * tests/test-closein.sh: Likewise. * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit. * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
Bruno Haible e7e8418d 2007-04-27T10:59:36 Relax test, to avoid failure on mingw.
Eric Blake a8f95644 2007-04-26T13:16:50 Implement freading and fwriting. * lib/freading.c: New file. * lib/freading.h: Likewise. * m4/freading.m4: Likewise. * modules/freading: Likewise. * modules/freading-tests: Likewise. * tests/test-freading.c: Likewise. * lib/fwriting.c: New file. * lib/fwriting.h: Likewise. * m4/fwriting.m4: Likewise. * modules/fwriting: Likewise. * modules/fwriting-tests: Likewise. * tests/test-fwriting.c: Likewise. * MODULES.html.sh (File stream based Input/Output): Mention them.
Bruno Haible 0a786d25 2007-04-26T09:25:05 On BSD implementations, when we call lseek(), we must also update or disable the stream's file descriptor position cache.
Eric Blake a507c022 2007-04-25T13:22:15 * lib/fpurge.c (includes): Use stdlib.h for free. * tests/test-fflush.c (main): Also test fflush-fseeko.
Bruno Haible 25b5e5c4 2007-04-25T07:52:28 Tests for module 'ftello'.
Bruno Haible 781e3fd7 2007-04-25T07:40:58 Tests for module 'fseeko'.
Bruno Haible 5a86df4f 2007-04-25T06:46:57 Ensure that <unistd.h> and <fcntl.h> define SEEK_CUR etc.
Bruno Haible 66b59979 2007-04-23T07:56:34 Be prepared to a failure of setvbuf.
Bruno Haible f9e1b15b 2007-04-14T00:26:03 Tests for module 'fpurge'.
Bruno Haible cc778c76 2007-04-14T00:21:05 Tests for module 'fbufmode'.
Bruno Haible 384cc955 2007-04-14T00:15:48 Tests for module 'fwritable'.
Bruno Haible 0d0c8aa9 2007-04-14T00:11:40 Tests for module 'freadable'.
Bruno Haible d6f27950 2007-04-13T16:56:08 Add tests for %f and %F directives.
Bruno Haible 3d17c282 2007-04-13T10:56:10 Guard against FreeBSD 6.1 bug.
Bruno Haible f1d7a8f4 2007-04-11T00:24:01 Guard against FreeBSD 6.1 bug.
Bruno Haible 870a56a1 2007-04-10T23:42:43 Tests for module 'locale'.
Eric Blake 0c47a3bb 2007-04-10T03:09:07 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush. * modules/stdio (Makefile.am): Support fflush. * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise. * modules/fflush: New file. * lib/fflush.c: Likewise. * m4/fflush.m4: Likewise. * modules/fflush-tests: New test. * tests/test-fflush.c: Likewise. * MODULES.html.sh (Input/output <stdio.h>): Document new module.
Bruno Haible 5d7e7dd7 2007-04-06T21:15:32 Test also the sign bit of zero results.
Bruno Haible 793bb37e 2007-04-06T20:57:56 Tests for module 'signbit'.
Bruno Haible 188ada9d 2007-04-06T20:20:46 Tests for module 'isnanf-nolibm'.
Bruno Haible 9f88c0b0 2007-04-06T14:36:56 Assume 'long double' exists.