test-xalloc-die: avoid spurious failure due to libtool argv difference
[gnulib.git] / ChangeLog
index 50712ad..27a6abc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,197 @@
+2009-11-27  Jim Meyering  <meyering@redhat.com>
+
+       test-xalloc-die: avoid spurious failure due to libtool argv difference
+       In a libtool-enabled project, this test would fail due to a difference
+       in the emitted program name, e.g.,
+       -test-xalloc-die: memory exhausted
+       +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
+       Use program to avoid that.
+       * modules/xalloc-die-tests (Depends-on): Add progname.
+       * tests/test-xalloc-die.c: Include progname.h".
+       (program_name): Remove decl.
+       (main): Call set_program_name.
+       * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
+
+2009-11-26  Richard Jones  <rjones@redhat.com>
+
+       w32sock: leave win32 error in place.
+       * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
+
+2009-11-26  Eric Blake  <ebb9@byu.net>
+
+       init.sh: suggest to use skip_ and fail_ functions in comments
+       * tests/init.sh: Add a sentence.
+
+2009-11-25  Bruno Haible  <bruno@clisp.org>
+
+       init.sh: add documentation in comments
+       * tests/init.sh: Add some developer and user documentation.
+
+2009-11-26  Jim Meyering  <meyering@redhat.com>
+
+       init.sh: accommodate even those who specify bogus srcdir manually
+       * tests/init.sh: Normally, srcdir is guaranteed by automake and
+       configure-time tests to be sanitized, so that there is no need to
+       use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
+       (with no double quotes) suffices.  However, since tests may be
+       invoked manually, and since you may explicitly set srcdir to the
+       name of a directory containing spaces, do quote its uses here.
+       * tests/test-pread.sh: Likewise.
+       Suggested by Bruno Haible.
+
+       test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
+       * tests/test-pread.sh: Write no data into the pipe, because
+       test-pread actually reads none.  This avoids a diagnostic,
+       "bash: echo: write error: Broken pipe", that arises in the unusual
+       event something is ignoring SIGPIPE, and might be interpreted
+       as some sort of failure.  Reported by Bruno Haible.
+
+2009-11-25  Jim Meyering  <meyering@redhat.com>
+
+       test-pread: cover failure with ESPIPE and EINVAL
+       * tests/test-pread.c (main): Test for failure, too.
+       * tests/test-pread.sh: Invoke with stdin on a pipe.
+       Suggested by Eric Blake.
+
+       pread: improvement and fix
+       * modules/pread (Depends-on): Depend on lseek, for portability to
+       e.g., mingw.  Suggested by Eric Blake.
+       * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
+
+       unistd.in.h: correct declaration of pread
+       * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
+       Reported by Richard W.M. Jones.
+
+       test-pread.sh: distribute the test script
+       * modules/pread-tests (Files): Include test-pread.sh.
+
+       test-pread.sh: clean up
+       * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
+       * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
+       That is unnecessary, since it's always ".".
+       Suggestion from Eric Blake.
+
+       test-pread.sh: make executable
+       * tests/test-pread.sh: Set executable bit.
+       Reported by Eric Blake.
+
+       correct typo in test-pread.sh
+       * tests/test-pread.sh: Add #! line.
+
+       test pread
+       * tests/test-pread.c: New file.
+       * tests/test-pread.sh: Likewise.
+       * modules/pread-tests: Likewise.
+
+       pread: new module
+       * modules/pread: New file.
+       * lib/unistd.in.h (pread): Define/declare.
+       * lib/pread.c (pread): New file.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
+       * modules/unistd (Makefile.am): Substitute witnesses.
+       * doc/posix-functions/pread.texi (pread): Update.
+       * MODULES.html.sh: Add pread.
+
+2009-11-25  Jim Meyering  <meyering@redhat.com>
+
+       tests/init.sh: new file to be used via most *.sh tests
+       * tests/init.sh: New file.
+
+2009-11-25  Eric Blake  <ebb9@byu.net>
+
+       utimens: work around older Linux failure with symlinks
+       * lib/utimens.c (lutimensat_works_really): New variable.
+       (fdutimens, lutimens): Use it to manage kernels that support
+       nanosecond times on files, but not on symlinks.
+       Reported by Ondřej Vašík.
+
+       utimes: fix configure grammar
+       * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
+
+2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
+
+       regex: Fix fastmap for multibyte character ranges.
+       * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
+       characters when a multibyte character range is included.
+
+2009-11-22  Andy Wingo  <wingo@pobox.com>
+
+       version-etc: work also with AM_INIT_AUTOMAKE's no-define option
+       * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
+
+2009-11-24  Bruno Haible  <bruno@clisp.org>
+
+       doc: Most *_l functions exist in MacOS X 10.5.
+       * doc/posix-functions/duplocale.texi: Update platforms list.
+       * doc/posix-functions/freelocale.texi: Likewise.
+       * doc/posix-functions/newlocale.texi: Likewise.
+       * doc/posix-functions/uselocale.texi: Likewise.
+       * doc/posix-functions/isalnum_l.texi: Likewise.
+       * doc/posix-functions/isalpha_l.texi: Likewise.
+       * doc/posix-functions/isblank_l.texi: Likewise.
+       * doc/posix-functions/iscntrl_l.texi: Likewise.
+       * doc/posix-functions/isdigit_l.texi: Likewise.
+       * doc/posix-functions/isgraph_l.texi: Likewise.
+       * doc/posix-functions/islower_l.texi: Likewise.
+       * doc/posix-functions/isprint_l.texi: Likewise.
+       * doc/posix-functions/ispunct_l.texi: Likewise.
+       * doc/posix-functions/isspace_l.texi: Likewise.
+       * doc/posix-functions/isupper_l.texi: Likewise.
+       * doc/posix-functions/iswalnum_l.texi: Likewise.
+       * doc/posix-functions/iswalpha_l.texi: Likewise.
+       * doc/posix-functions/iswblank_l.texi: Likewise.
+       * doc/posix-functions/iswcntrl_l.texi: Likewise.
+       * doc/posix-functions/iswctype_l.texi: Likewise.
+       * doc/posix-functions/iswdigit_l.texi: Likewise.
+       * doc/posix-functions/iswgraph_l.texi: Likewise.
+       * doc/posix-functions/iswlower_l.texi: Likewise.
+       * doc/posix-functions/iswprint_l.texi: Likewise.
+       * doc/posix-functions/iswpunct_l.texi: Likewise.
+       * doc/posix-functions/iswspace_l.texi: Likewise.
+       * doc/posix-functions/iswupper_l.texi: Likewise.
+       * doc/posix-functions/iswxdigit_l.texi: Likewise.
+       * doc/posix-functions/isxdigit_l.texi: Likewise.
+       * doc/posix-functions/nl_langinfo_l.texi: Likewise.
+       * doc/posix-functions/strcasecmp_l.texi: Likewise.
+       * doc/posix-functions/strcoll_l.texi: Likewise.
+       * doc/posix-functions/strfmon_l.texi: Likewise.
+       * doc/posix-functions/strftime_l.texi: Likewise.
+       * doc/posix-functions/strncasecmp_l.texi: Likewise.
+       * doc/posix-functions/strxfrm_l.texi: Likewise.
+       * doc/posix-functions/tolower_l.texi: Likewise.
+       * doc/posix-functions/toupper_l.texi: Likewise.
+       * doc/posix-functions/towctrans_l.texi: Likewise.
+       * doc/posix-functions/towlower_l.texi: Likewise.
+       * doc/posix-functions/towupper_l.texi: Likewise.
+       * doc/posix-functions/wcscoll_l.texi: Likewise.
+       * doc/posix-functions/wcsxfrm_l.texi: Likewise.
+       * doc/posix-functions/wctrans_l.texi: Likewise.
+       * doc/posix-functions/wctype_l.texi: Likewise.
+       * doc/glibc-functions/strptime_l.texi: Likewise.
+       * doc/glibc-functions/strtod_l.texi: Likewise.
+       * doc/glibc-functions/strtof_l.texi: Likewise.
+       * doc/glibc-functions/strtol_l.texi: Likewise.
+       * doc/glibc-functions/strtold_l.texi: Likewise.
+       * doc/glibc-functions/strtoll_l.texi: Likewise.
+       * doc/glibc-functions/strtoul_l.texi: Likewise.
+       * doc/glibc-functions/strtoull_l.texi: Likewise.
+       * doc/glibc-functions/wcsftime_l.texi: Likewise.
+       * doc/glibc-functions/wcstod_l.texi: Likewise.
+       * doc/glibc-functions/wcstof_l.texi: Likewise.
+       * doc/glibc-functions/wcstol_l.texi: Likewise.
+       * doc/glibc-functions/wcstold_l.texi: Likewise.
+       * doc/glibc-functions/wcstoll_l.texi: Likewise.
+       * doc/glibc-functions/wcstoul_l.texi: Likewise.
+       * doc/glibc-functions/wcstoull_l.texi: Likewise.
+
+2009-11-24  Bruno Haible  <bruno@clisp.org>
+
+       duplocale: Fix logic bug.
+       * lib/duplocale.c: Don't include <langinfo.h>.
+       (_NL_LOCALE_NAME): Remove macro.
+       (rpl_duplocale): Use setlocale instead of nl_langinfo.
+       * tests/test-duplocale.c (main): Also test duplocale after uselocale.
+
 2009-11-23  Jim Meyering  <meyering@redhat.com>
 
        test-update-copyright: don't hard-code /usr/bin/perl