James Youngman [Thu, 8 Apr 2010 02:02:12 +0000 (03:02 +0100)]
Add missing parenthesis in manywarnings example
Jim Meyering [Fri, 9 Apr 2010 20:36:26 +0000 (22:36 +0200)]
maint.mk: print better diagnostic when there is no $(_hv_file)
* top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
announce that when $(_hv_file) (aka help-version) does not exist.
Jim Meyering [Fri, 9 Apr 2010 18:53:49 +0000 (20:53 +0200)]
init.sh: run tr in the "C" locale to avoid multibyte interpretation
* tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
not try to interpret its random input bytes. Jarno Rajahalme reported
that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence"
on Darwin 10.3.0 with LC_CTYPE=UTF-8.
(mktempd_): Likewise, just in case.
Jim Meyering [Fri, 9 Apr 2010 17:14:37 +0000 (19:14 +0200)]
ftruncate: add two years to projected module removal date: 2012
* m4/ftruncate.m4: Adjust comments.
Bruno Haible [Fri, 9 Apr 2010 09:08:15 +0000 (11:08 +0200)]
Add attribution to a ChangeLog entry.
Jim Meyering [Fri, 9 Apr 2010 08:44:23 +0000 (10:44 +0200)]
ftruncate: mark module as obsolete; even MinGW provides it, now
* modules/ftruncate (Status): Obsolete.
(Notice): Say that.
* doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
Bruno Haible [Fri, 9 Apr 2010 00:02:15 +0000 (02:02 +0200)]
Fix side effects from tests-related modules.
Karl Berry [Wed, 7 Apr 2010 23:02:50 +0000 (16:02 -0700)]
doc fixes to srclist*
Jim Meyering [Wed, 7 Apr 2010 11:45:59 +0000 (13:45 +0200)]
maint.mk: add a PATH crosschecking syntax-check rule
* top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
Useful if you use a test like the one in help-version (coreutils,
diffutils, grep, gzip) that ensures $(VERSION) matches what is
printed by prog --version.
Bruno Haible [Tue, 6 Apr 2010 22:26:31 +0000 (00:26 +0200)]
Fix link error on mingw.
Bruno Haible [Tue, 6 Apr 2010 21:23:00 +0000 (23:23 +0200)]
Assume rmdir exists.
Giuseppe Scrivano [Tue, 6 Apr 2010 19:26:32 +0000 (21:26 +0200)]
doc: update users.txt
* users.txt: Add gcal.
Signed-off-by: Eric Blake <eblake@redhat.com>
Jim Meyering [Tue, 6 Apr 2010 17:24:57 +0000 (19:24 +0200)]
init.sh: simply unset TMPDIR rather than risking env -i
* tests/init.sh (mktempd_): Using env -i is rather harsh, and
although it probably works fine on all Unix-based systems, some
systems (Cygwin?) cannot tolerate a totally cleared environment.
Suggestion from Eric Blake.
2010-04-06 Jim Meyering <meyering@redhat.com>
Jim Meyering [Tue, 6 Apr 2010 15:33:51 +0000 (17:33 +0200)]
init.sh: portability fix: use env's POSIX-specified -i option not -u
* tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
than unportable env -u. Solaris 5.11's env lacks support for -u.
Bruno Haible [Mon, 5 Apr 2010 22:30:28 +0000 (00:30 +0200)]
btowc: Work around Cygwin 1.7.2 bug.
Bruno Haible [Mon, 5 Apr 2010 21:46:02 +0000 (23:46 +0200)]
Make the multithread modules work on Cygwin 1.7.2.
Bruno Haible [Mon, 5 Apr 2010 19:17:47 +0000 (21:17 +0200)]
Use the module 'strncat'.
Bruno Haible [Mon, 5 Apr 2010 19:17:09 +0000 (21:17 +0200)]
Tests for module 'strncat'.
Bruno Haible [Mon, 5 Apr 2010 19:14:58 +0000 (21:14 +0200)]
New module 'strncat'.
Jim Meyering [Mon, 5 Apr 2010 17:30:38 +0000 (19:30 +0200)]
xstrtoumax-tests: convert to use init.sh
* modules/xstrtoumax-tests (Files): Add tests/init.sh.
* tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
Use Exit, not exit.
Remove uses of $EXEEXT and "./" to run a program in the current dir.
Jim Meyering [Mon, 5 Apr 2010 16:27:15 +0000 (18:27 +0200)]
xstrtoimax-tests: convert to use init.sh
* modules/xstrtoimax-tests (Files): Add tests/init.sh.
* tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
Use Exit, not exit.
Remove uses of $EXEEXT and "./" to run a program in the current dir.
Jim Meyering [Mon, 5 Apr 2010 14:32:41 +0000 (16:32 +0200)]
xstrtol-tests: convert to use init.sh
* modules/xstrtol-tests (Files): Add tests/init.sh.
* tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
Use Exit, not exit.
Remove uses of $EXEEXT and "./" to run a program in the current dir.
Jim Meyering [Mon, 5 Apr 2010 14:12:55 +0000 (16:12 +0200)]
atexit-tests: convert to use init.sh
* modules/atexit-tests (Files): Add tests/init.sh.
* tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
Use Exit, not exit.
Remove uses of $EXEEXT and "./" to run a program in the current dir.
Bruno Haible [Mon, 5 Apr 2010 16:34:08 +0000 (18:34 +0200)]
sys_socket: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 5 Apr 2010 16:18:11 +0000 (18:18 +0200)]
fseeko: Fix C++ test error on mingw.
Bruno Haible [Mon, 5 Apr 2010 15:26:55 +0000 (17:26 +0200)]
duplocale: Improve test output.
Bruno Haible [Mon, 5 Apr 2010 15:27:26 +0000 (17:27 +0200)]
Assume rmdir exists.
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.