Bruno Haible [Mon, 5 Apr 2010 14:58:01 +0000 (16:58 +0200)]
Assume rmdir exists.
Bruno Haible [Mon, 5 Apr 2010 14:14:47 +0000 (16:14 +0200)]
Fix link error on Solaris 8 with cc.
Bruno Haible [Mon, 5 Apr 2010 13:58:34 +0000 (15:58 +0200)]
frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
Bruno Haible [Mon, 5 Apr 2010 13:27:34 +0000 (15:27 +0200)]
vasprintf: Update documentation.
Bruno Haible [Mon, 5 Apr 2010 11:15:11 +0000 (13:15 +0200)]
ptsname: Improve test.
Bruno Haible [Mon, 5 Apr 2010 11:12:59 +0000 (13:12 +0200)]
memchr: Avoid a possible C++ test error.
Bruno Haible [Mon, 5 Apr 2010 10:53:27 +0000 (12:53 +0200)]
strtok_r: Improve idiom.
Bruno Haible [Mon, 5 Apr 2010 10:51:03 +0000 (12:51 +0200)]
strdup: Improve idiom.
Bruno Haible [Mon, 5 Apr 2010 10:24:52 +0000 (12:24 +0200)]
mbsinit, mbrtowc, wcrtomb: Improve idioms.
Bruno Haible [Mon, 5 Apr 2010 09:55:38 +0000 (11:55 +0200)]
ldexpl: Improve idiom.
Jim Meyering [Mon, 5 Apr 2010 14:10:05 +0000 (16:10 +0200)]
init.sh: fix typo
* tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
Karl Berry [Mon, 5 Apr 2010 13:42:37 +0000 (06:42 -0700)]
update from texinfo
Jim Meyering [Mon, 5 Apr 2010 08:01:07 +0000 (10:01 +0200)]
init.sh: make it easier for a test script to write to the tty, ...
when using automake's parallel-tests mode.
* tests/init.sh (stderr_fileno_): Define overridable variable.
(warn_): New function, to use it.
(fail_, skip_, framework_failure_): Use warn_.
Bruno Haible [Sun, 4 Apr 2010 23:37:37 +0000 (01:37 +0200)]
btowc: Avoid warning.
Hauke Fath [Sun, 4 Apr 2010 23:33:24 +0000 (01:33 +0200)]
wchar: Port to NetBSD 1.5.
Hauke Fath [Sun, 4 Apr 2010 23:13:18 +0000 (01:13 +0200)]
Port extended stdio to NetBSD 1.5.
Bruno Haible [Sun, 4 Apr 2010 21:41:29 +0000 (23:41 +0200)]
string: Remove unused substitution.
Bruno Haible [Sun, 4 Apr 2010 21:13:31 +0000 (23:13 +0200)]
strtod: Avoid a possible C++ test error.
Bruno Haible [Sun, 4 Apr 2010 21:07:50 +0000 (23:07 +0200)]
strerror: Update documentation.
Bruno Haible [Sun, 4 Apr 2010 20:42:59 +0000 (22:42 +0200)]
stdio: Fix some C++ test errors on Solaris 8 with GCC.
Bruno Haible [Sun, 4 Apr 2010 20:13:20 +0000 (22:13 +0200)]
frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
Bruno Haible [Sun, 4 Apr 2010 19:18:03 +0000 (21:18 +0200)]
math: Fix some C++ test errors on Solaris 8 and Cygwin.
Bruno Haible [Sun, 4 Apr 2010 18:49:44 +0000 (20:49 +0200)]
Implement nanosleep for native Windows.
Bruno Haible [Sun, 4 Apr 2010 18:15:21 +0000 (20:15 +0200)]
math: Fix some C++ test errors on Solaris 8.
Bruno Haible [Sun, 4 Apr 2010 17:59:32 +0000 (19:59 +0200)]
math: Fix some C++ test errors on Cygwin.
Karl Berry [Sun, 4 Apr 2010 16:30:18 +0000 (09:30 -0700)]
autoupdate
Bruno Haible [Sun, 4 Apr 2010 16:13:24 +0000 (18:13 +0200)]
Remove redundant AC_SUBST invocations.
Bruno Haible [Sun, 4 Apr 2010 15:40:20 +0000 (17:40 +0200)]
Remove redundant AC_SUBST invocation.
Bruno Haible [Sun, 4 Apr 2010 14:26:00 +0000 (16:26 +0200)]
Rename gl_TMPFILE.
Bruno Haible [Sun, 4 Apr 2010 13:37:40 +0000 (15:37 +0200)]
tmpfile: Fix C++ test error on mingw.
Bruno Haible [Sun, 4 Apr 2010 08:32:19 +0000 (10:32 +0200)]
ioctl: Fix C++ test error on mingw.
Bruno Haible [Sun, 4 Apr 2010 00:42:00 +0000 (02:42 +0200)]
wcwidth: Fix C++ test error on mingw.
Bruno Haible [Sun, 4 Apr 2010 00:12:01 +0000 (02:12 +0200)]
nanosleep: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 18:23:47 +0000 (20:23 +0200)]
strptime: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 17:54:49 +0000 (19:54 +0200)]
Oops, fix default value in the last commits.
Bruno Haible [Sat, 3 Apr 2010 17:15:04 +0000 (19:15 +0200)]
timegm: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 17:33:13 +0000 (19:33 +0200)]
timegm: Assume declaration if function exists.
Bruno Haible [Sat, 3 Apr 2010 16:52:49 +0000 (18:52 +0200)]
time_r: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 16:43:42 +0000 (18:43 +0200)]
time_r: Minor updates.
Bruno Haible [Sat, 3 Apr 2010 16:24:34 +0000 (18:24 +0200)]
time: Fix regression introduced on 2010-03-08.
Jim Meyering [Sat, 3 Apr 2010 16:03:16 +0000 (18:03 +0200)]
maint.mk: don't silently disable project-specific syntax-check rules
* top/maint.mk (_prohibit_regexp): Define, to help people realize
that they need to convert their project-specific syntax-check rules
to use the new _sc_search_regexp.
Bruno Haible [Sat, 3 Apr 2010 13:59:25 +0000 (15:59 +0200)]
fchdir: Fix regression introduced on 2010-03-08.
Bruno Haible [Sat, 3 Apr 2010 13:43:45 +0000 (15:43 +0200)]
getpagesize: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 12:34:57 +0000 (14:34 +0200)]
stdio: Make C++ tests work on mingw.
Bruno Haible [Sat, 3 Apr 2010 12:25:24 +0000 (14:25 +0200)]
ftello: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 12:08:25 +0000 (14:08 +0200)]
fseeko: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 11:44:41 +0000 (13:44 +0200)]
mkstemp: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 11:21:17 +0000 (13:21 +0200)]
stpncpy: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 10:55:17 +0000 (12:55 +0200)]
sys_stat: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 10:37:54 +0000 (12:37 +0200)]
pty: Update doc.
Bruno Haible [Sat, 3 Apr 2010 10:30:09 +0000 (12:30 +0200)]
unistd: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 10:14:13 +0000 (12:14 +0200)]
Update doc regarding mingw.
Bruno Haible [Sat, 3 Apr 2010 10:07:56 +0000 (12:07 +0200)]
stdlib: Avoid compilation failure of c-strtold on mingw.
Bruno Haible [Sat, 3 Apr 2010 09:57:20 +0000 (11:57 +0200)]
locale: Make C++ tests work on Cygwin and mingw.
Bruno Haible [Sat, 3 Apr 2010 08:46:26 +0000 (10:46 +0200)]
localename: Port to MacOS X 10.6.
Bruno Haible [Fri, 2 Apr 2010 18:04:45 +0000 (20:04 +0200)]
gnulib-tool: Ensure that long-running tests are executed last.
Bruno Haible [Fri, 2 Apr 2010 17:44:45 +0000 (19:44 +0200)]
gnulib-tool: Ensure the tests in the main directory are executed first.
Bruno Haible [Fri, 2 Apr 2010 16:17:06 +0000 (18:17 +0200)]
Oops, fix small mistake in last commit.
Bruno Haible [Fri, 2 Apr 2010 16:09:43 +0000 (18:09 +0200)]
Tests for module 'havelib', moved here from GNU gettext.
Bruno Haible [Fri, 2 Apr 2010 15:09:37 +0000 (17:09 +0200)]
gnulib-tool: Create distributed built sources also for the tests.
Bruno Haible [Fri, 2 Apr 2010 14:57:08 +0000 (16:57 +0200)]
gnulib-tool: Obey user's environment variables.
Bruno Haible [Fri, 2 Apr 2010 14:51:12 +0000 (16:51 +0200)]
gnulib-tool: Provide the value of --m4-base to modules.
Eric Blake [Fri, 2 Apr 2010 14:47:05 +0000 (08:47 -0600)]
maint.mk: fix some fallout
Also rearrange ChangeLog to match commit order.
* NEWS: Document the incompatible change, and its effect on cfg.mk.
* top/maint.mk (sc_prohibit_test_minus_ao): Update.
Signed-off-by: Eric Blake <eblake@redhat.com>
Jose E. Marchesi [Mon, 29 Mar 2010 13:38:39 +0000 (15:38 +0200)]
maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
Adapt existing rules to use the new factorization, which provides
a more declarative syntax for pattern searching syntax checks.
* top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
(sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
(sc_cast_of_x_alloc_return_value): Likewise.
(sc_cast_of_alloca_return_value): Likewise.
(sc_space_tab): Likewise.
(sc_prohibit_atoi_atof): Likewise.
(sc_prohibit_magic_number_exit): Likewise.
(sc_error_exit_success): Likewise.
(sc_file_system): Likewise.
(sc_prohibit_have_config_h): Likewise.
(sc_require_config_h): Likewise.
(sc_prohibit_HAVE_MBRTOWC): Likewise.
(sc_obsolete_symbols): Likewise.
(sc_changelog): Likewise.
(sc_program_name): Likewise.
(sc_the_the): Likewise.
(sc_trailing_blank): Likewise.
(sc_two_space_separator_in_usage): Likewise.
(sc_useless_cpp_parens): Likewise.
(sc_GPL_version): Likewise.
(sc_GFDL_version): Likewise.
(sc_texinfo_acronym): Likewise.
(sc_prohibit_cvs_keyword): Likewise.
(sc_prohibit_stat_st_blocks): Likewise.
(sc_prohibit_S_IS_definition): Likewise.
(sc_redundant_const): Likewise.
(sc_makefile_TAB_only_indentation): Likewise.
(sc_m4_quote_check): Likewise.
(sc_makefile_path_separator_check): Likewise.
(sc_copyright_check): Likewise.
(sc_Wundef_boolean): Likewise.
(sc_vulnerable_makefile_CVE-2009-4029): Likewise.
Jose E. Marchesi [Sun, 28 Mar 2010 11:35:24 +0000 (13:35 +0200)]
maint.mk: match 0 or more whitespace-before-function-call '('
* top/maint.mk (sc_error_exit_success): Relax regexp to match uses
that have zero or two-and-more spaces between the function name
and the open parenthesis.
(sc_error_message_warn_fatal): Likewise.
(sc_error_message_uppercase): Likewise.
(sc_error_message_period): Likewise.
Eric Blake [Wed, 31 Mar 2010 21:33:55 +0000 (15:33 -0600)]
maint.mk: check for [ as well as test
A word on the regex: \<\[ never matches, so the match instead
looks for a leading space in that case. Although configure.ac
should generally use test instead of [ (because the latter has
to be spelled [[ because of m4 processing), libvirt had a case
of the latter that would have been detected with this rule.
* top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
Based on a libvirt report by Matthias Bolte.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Tue, 30 Mar 2010 21:56:17 +0000 (15:56 -0600)]
gnumakefile: don't squelch _version output
Borrowing from a trick I discovered on the libvirt list.
More details about how this trick works:
GNU make parses all Makefiles, then checks whether they are
up-to-date, all before making anything else; if any Makefile
timestamps change, then it restarts with the original arguments and
repeats the check for up-to-date Makefiles (assuming that this time
the check will pass). Since all the rules are parsed before Makefile
is updated, proceeding without reloading Makefiles would result in the
use of the stale $(VERSION) string that was in effect when we first
started, so we must update a timestamp to force the reload. However,
if we made Makefile depend on _version, we would end up running
_version twice. So instead, we make _version run a recursive make to
update Makefile (the recursive make skips the rules for checking
whether the version string needs an update, avoiding any extra runs of
_version), then ensure that GNUmakefile has an updated timestamp to
force the reload of the updated Makefile.
* top/GNUmakefile (GNUmakefile): Create one-shot dependency rather
than using $(shell) to run _version target.
(_autoreconf): Run verbosely, by default.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Wed, 31 Mar 2010 13:57:51 +0000 (07:57 -0600)]
sys_time: avoid compiler warnings
sys/time uses #if/#else/#endif, and is therefore not subject
to the gcc optimization. The #pragma GCC system_header must
occur up front.
* lib/sys_time.in.h (includes): Ensure gcc pragma is
unconditional, fixing regression from 2010-03-29.
Reported by Simon Josefsson.
Signed-off-by: Eric Blake <eblake@redhat.com>
Jim Meyering [Mon, 29 Mar 2010 14:43:00 +0000 (16:43 +0200)]
maint.mk: split a long line
* top/maint.mk: Split a line to fit in 80 columns.
Jose E. Marchesi [Sun, 28 Mar 2010 11:28:34 +0000 (13:28 +0200)]
maint.mk: s/_header_without_use/_sc_header_without_use/
* top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
(sc_prohibit_assert_without_use): Use the new name.
(sc_prohibit_close_stream_without_use): Likewise.
(sc_prohibit_getopt_without_use): Likewise.
(sc_prohibit_quotearg_without_use): Likewise.
(sc_prohibit_quote_without_use): Likewise.
(sc_prohibit_long_options_without_use): Likewise.
(sc_prohibit_inttostr_without_use): Likewise.
(sc_prohibit_ignore_value_without_use): Likewise.
(sc_prohibit_error_without_use): Likewise.
(sc_prohibit_xalloc_without_use): Likewise.
(sc_prohibit_hash_without_use): Likewise.
(sc_prohibit_hash_pjw_without_use): Likewise.
(sc_prohibit_safe_read_without_use): Likewise.
(sc_prohibit_argmatch_without_use): Likewise.
(sc_prohibit_canonicalize_without_use): Likewise.
(sc_prohibit_root_dev_ino_without_use): Likewise.
(sc_prohibit_openat_without_use): Likewise.
(sc_prohibit_c_ctype_without_use): Likewise.
(sc_prohibit_signal_without_use): Likewise.
(sc_prohibit_intprops_without_use): Likewise.
Eric Blake [Tue, 30 Mar 2010 14:47:41 +0000 (08:47 -0600)]
maint: improve module indicators
* m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
(gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
columns, and avoid extra macro expansion.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Mon, 29 Mar 2010 21:08:59 +0000 (15:08 -0600)]
fdopendir: work around FreeBSD bug
Without a declaration, at least tar would core dump on 64-bit
FreeBSD because gcc only used 32 bits of the resulting pointer.
* m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
* modules/dirent (Makefile.am): Substitute it.
* lib/dirent.in.h (fdopendir): Supply missing FreeBSD
declaration.
* doc/posix-functions/fdopendir.texi (fdopendir): Document the
fix.
Reported by Christian Weisgerber <naddy@mips.inka.de>.
Signed-off-by: Eric Blake <eblake@redhat.com>
Bruno Haible [Tue, 30 Mar 2010 00:35:49 +0000 (02:35 +0200)]
Emit #pragma system_header after the inclusion guard, not before.
Bruno Haible [Tue, 30 Mar 2010 00:33:35 +0000 (02:33 +0200)]
Fix indentation.
James Youngman [Mon, 29 Mar 2010 10:30:23 +0000 (12:30 +0200)]
save-cwd: don't leak a file descriptor when the caller execs
* lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
saved file descriptor.
* modules/save-cwd (Depends-on): Depend on cloexec.
Bruno Haible [Mon, 29 Mar 2010 08:41:20 +0000 (10:41 +0200)]
Remove vestiges of fts-lgpl module.
Bruno Haible [Mon, 29 Mar 2010 02:21:23 +0000 (04:21 +0200)]
Fix definition of tests witness macro.
Bruno Haible [Mon, 29 Mar 2010 01:04:51 +0000 (03:04 +0200)]
Fix definition of tests witness macro.
Bruno Haible [Mon, 29 Mar 2010 00:27:39 +0000 (02:27 +0200)]
Fix ioctl's protoype on glibc systems.
Bruno Haible [Sun, 28 Mar 2010 23:17:33 +0000 (01:17 +0200)]
Normalize copyright line formatting.
Javier Villavicencio [Sun, 28 Mar 2010 18:42:01 +0000 (20:42 +0200)]
exclude: fix the case of globs vs. EXCLUDE_INCLUDE
* lib/exclude.c (excluded_file_pattern_p): Fix logic error that
made it so grep -r --include=GLOB* ... did not work.
Jim Meyering [Fri, 26 Mar 2010 08:04:29 +0000 (09:04 +0100)]
maint.mk: prohibit use of test's -o and -a operators
* top/maint.mk (sc_prohibit_test_minus_ao): New rule.
Bruno Haible [Sun, 28 Mar 2010 17:39:32 +0000 (19:39 +0200)]
Remove unused GNULIB_XYZ macro definitions.
Bruno Haible [Sun, 28 Mar 2010 17:15:43 +0000 (19:15 +0200)]
Mark privileged tests modules.
Bruno Haible [Sun, 28 Mar 2010 17:07:33 +0000 (19:07 +0200)]
Split C++ tests into separate tests modules.
Bruno Haible [Sun, 28 Mar 2010 16:32:36 +0000 (18:32 +0200)]
gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
Bruno Haible [Sun, 28 Mar 2010 16:01:18 +0000 (18:01 +0200)]
gnulib-tool: Add support for special categories of tests.
Bruno Haible [Sun, 28 Mar 2010 13:30:39 +0000 (15:30 +0200)]
ansi-c++-opt: Allow turning off the C++ build by default.
Bruno Haible [Sun, 28 Mar 2010 12:26:15 +0000 (14:26 +0200)]
unistd: Avoid #define replacements in C++ mode.
Bruno Haible [Sun, 28 Mar 2010 12:21:28 +0000 (14:21 +0200)]
Fix link errors on mingw.
Bruno Haible [Sun, 28 Mar 2010 09:23:57 +0000 (11:23 +0200)]
lib-ignore: Determine different options for different compilers.
Bruno Haible [Sun, 28 Mar 2010 00:48:22 +0000 (01:48 +0100)]
Remove unused GNULIB_XYZ macro definitions.
Bruno Haible [Sun, 28 Mar 2010 00:37:25 +0000 (01:37 +0100)]
Add a remark about certain modules.
Bruno Haible [Sun, 28 Mar 2010 00:29:52 +0000 (01:29 +0100)]
Resolve conflict between the two kinds of module indicators.
Karl Berry [Sun, 28 Mar 2010 00:08:29 +0000 (17:08 -0700)]
autoupdate
Bruno Haible [Sat, 27 Mar 2010 23:31:39 +0000 (00:31 +0100)]
Distinguish two kinds of module indicators.
Bruno Haible [Sat, 27 Mar 2010 19:52:28 +0000 (20:52 +0100)]
New module description field 'Comment'.
Bruno Haible [Sat, 27 Mar 2010 19:45:57 +0000 (20:45 +0100)]
Addendum to 2010-02-07 commit.
Bruno Haible [Sat, 27 Mar 2010 19:09:55 +0000 (20:09 +0100)]
Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
Bruno Haible [Sat, 27 Mar 2010 17:54:30 +0000 (18:54 +0100)]
Avoid side effects from tests-related modules on the compilation of lib.