summaryrefslogtreecommitdiff
path: root/gettext-tools/gnulib-tests
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-06-11 13:13:21 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-06-11 13:13:21 +0000
commit500500ec9b7b0d0cef90b48c9b4ddc8866b5f19c (patch)
tree1d7b3e6fab5c199fdbbaab53ee9532de6a4c8cf7 /gettext-tools/gnulib-tests
parent6eb5949dd99d174393465069c2fd0bab32deddcc (diff)
downloadgettext-tarball-500500ec9b7b0d0cef90b48c9b4ddc8866b5f19c.tar.gz
Diffstat (limited to 'gettext-tools/gnulib-tests')
-rw-r--r--gettext-tools/gnulib-tests/Makefile.am2
-rw-r--r--gettext-tools/gnulib-tests/Makefile.gnulib20
-rw-r--r--gettext-tools/gnulib-tests/Makefile.in51
-rw-r--r--gettext-tools/gnulib-tests/btowc.c2
-rw-r--r--gettext-tools/gnulib-tests/ctype.in.h2
-rw-r--r--gettext-tools/gnulib-tests/dup.c27
-rw-r--r--gettext-tools/gnulib-tests/fdopen.c2
-rw-r--r--gettext-tools/gnulib-tests/file-has-acl.c2
-rw-r--r--gettext-tools/gnulib-tests/fpucw.h2
-rw-r--r--gettext-tools/gnulib-tests/ftell.c2
-rw-r--r--gettext-tools/gnulib-tests/ftello.c2
-rw-r--r--gettext-tools/gnulib-tests/getcwd-lgpl.c2
-rw-r--r--gettext-tools/gnulib-tests/getpagesize.c2
-rw-r--r--gettext-tools/gnulib-tests/glthread/thread.c2
-rw-r--r--gettext-tools/gnulib-tests/glthread/thread.h2
-rw-r--r--gettext-tools/gnulib-tests/glthread/yield.h2
-rw-r--r--gettext-tools/gnulib-tests/infinity.h2
-rw-r--r--gettext-tools/gnulib-tests/init.sh35
-rw-r--r--gettext-tools/gnulib-tests/inttypes.in.h2
-rw-r--r--gettext-tools/gnulib-tests/lseek.c2
-rw-r--r--gettext-tools/gnulib-tests/macros.h2
-rw-r--r--gettext-tools/gnulib-tests/mbtowc-impl.h2
-rw-r--r--gettext-tools/gnulib-tests/mbtowc.c2
-rw-r--r--gettext-tools/gnulib-tests/minus-zero.h2
-rw-r--r--gettext-tools/gnulib-tests/nan.h2
-rw-r--r--gettext-tools/gnulib-tests/putenv.c2
-rw-r--r--gettext-tools/gnulib-tests/randomd.c2
-rw-r--r--gettext-tools/gnulib-tests/read-file.c2
-rw-r--r--gettext-tools/gnulib-tests/read-file.h2
-rw-r--r--gettext-tools/gnulib-tests/same-inode.h2
-rw-r--r--gettext-tools/gnulib-tests/signature.h2
-rw-r--r--gettext-tools/gnulib-tests/sleep.c2
-rw-r--r--gettext-tools/gnulib-tests/stdalign.in.h8
-rw-r--r--gettext-tools/gnulib-tests/stdio-impl.h2
-rw-r--r--gettext-tools/gnulib-tests/symlink.c2
-rw-r--r--gettext-tools/gnulib-tests/test-alignof.c2
-rw-r--r--gettext-tools/gnulib-tests/test-alloca-opt.c2
-rw-r--r--gettext-tools/gnulib-tests/test-areadlink.c2
-rw-r--r--gettext-tools/gnulib-tests/test-areadlink.h2
-rw-r--r--gettext-tools/gnulib-tests/test-argmatch.c2
-rw-r--r--gettext-tools/gnulib-tests/test-array_list.c2
-rw-r--r--gettext-tools/gnulib-tests/test-atexit.c2
-rw-r--r--gettext-tools/gnulib-tests/test-binary-io.c2
-rw-r--r--gettext-tools/gnulib-tests/test-btowc.c2
-rw-r--r--gettext-tools/gnulib-tests/test-byteswap.c2
-rw-r--r--gettext-tools/gnulib-tests/test-c-ctype.c2
-rw-r--r--gettext-tools/gnulib-tests/test-c-strcasecmp.c2
-rw-r--r--gettext-tools/gnulib-tests/test-c-strcasestr.c2
-rw-r--r--gettext-tools/gnulib-tests/test-c-strncasecmp.c2
-rw-r--r--gettext-tools/gnulib-tests/test-c-strstr.c2
-rw-r--r--gettext-tools/gnulib-tests/test-canonicalize-lgpl.c2
-rw-r--r--gettext-tools/gnulib-tests/test-cloexec.c2
-rw-r--r--gettext-tools/gnulib-tests/test-close.c2
-rw-r--r--gettext-tools/gnulib-tests/test-copy-acl.c2
-rw-r--r--gettext-tools/gnulib-tests/test-copy-file.c2
-rw-r--r--gettext-tools/gnulib-tests/test-ctype.c2
-rw-r--r--gettext-tools/gnulib-tests/test-dirent.c2
-rw-r--r--gettext-tools/gnulib-tests/test-dup-safer.c2
-rw-r--r--gettext-tools/gnulib-tests/test-dup.c2
-rw-r--r--gettext-tools/gnulib-tests/test-dup2.c2
-rw-r--r--gettext-tools/gnulib-tests/test-environ.c2
-rw-r--r--gettext-tools/gnulib-tests/test-errno.c2
-rw-r--r--gettext-tools/gnulib-tests/test-fabs.c2
-rw-r--r--gettext-tools/gnulib-tests/test-fabs.h2
-rw-r--r--gettext-tools/gnulib-tests/test-fcntl-h.c2
-rw-r--r--gettext-tools/gnulib-tests/test-fcntl.c2
-rw-r--r--gettext-tools/gnulib-tests/test-fdopen.c2
-rw-r--r--gettext-tools/gnulib-tests/test-fgetc.c2
-rw-r--r--gettext-tools/gnulib-tests/test-file-has-acl.c2
-rw-r--r--gettext-tools/gnulib-tests/test-float.c2
-rw-r--r--gettext-tools/gnulib-tests/test-fnmatch.c2
-rw-r--r--gettext-tools/gnulib-tests/test-fopen.c2
-rw-r--r--gettext-tools/gnulib-tests/test-fopen.h2
-rw-r--r--gettext-tools/gnulib-tests/test-fputc.c2
-rw-r--r--gettext-tools/gnulib-tests/test-fread.c2
-rw-r--r--gettext-tools/gnulib-tests/test-fstat.c2
-rw-r--r--gettext-tools/gnulib-tests/test-fstrcmp.c2
-rw-r--r--gettext-tools/gnulib-tests/test-ftell.c2
-rw-r--r--gettext-tools/gnulib-tests/test-ftell3.c2
-rw-r--r--gettext-tools/gnulib-tests/test-ftello.c2
-rw-r--r--gettext-tools/gnulib-tests/test-ftello3.c2
-rw-r--r--gettext-tools/gnulib-tests/test-ftello4.c2
-rw-r--r--gettext-tools/gnulib-tests/test-fwrite.c2
-rw-r--r--gettext-tools/gnulib-tests/test-getcwd-lgpl.c2
-rw-r--r--gettext-tools/gnulib-tests/test-getdelim.c2
-rw-r--r--gettext-tools/gnulib-tests/test-getdtablesize.c2
-rw-r--r--gettext-tools/gnulib-tests/test-getline.c6
-rw-r--r--gettext-tools/gnulib-tests/test-getopt.c2
-rw-r--r--gettext-tools/gnulib-tests/test-getopt.h2
-rw-r--r--gettext-tools/gnulib-tests/test-getopt_long.h2
-rw-r--r--gettext-tools/gnulib-tests/test-gettimeofday.c2
-rw-r--r--gettext-tools/gnulib-tests/test-iconv-h.c2
-rw-r--r--gettext-tools/gnulib-tests/test-iconv.c2
-rw-r--r--gettext-tools/gnulib-tests/test-ignore-value.c2
-rwxr-xr-xgettext-tools/gnulib-tests/test-init.sh2
-rw-r--r--gettext-tools/gnulib-tests/test-intprops.c30
-rw-r--r--gettext-tools/gnulib-tests/test-inttypes.c2
-rw-r--r--gettext-tools/gnulib-tests/test-isinf.c2
-rw-r--r--gettext-tools/gnulib-tests/test-isnan.c2
-rw-r--r--gettext-tools/gnulib-tests/test-isnand-nolibm.c2
-rw-r--r--gettext-tools/gnulib-tests/test-isnand.c2
-rw-r--r--gettext-tools/gnulib-tests/test-isnand.h2
-rw-r--r--gettext-tools/gnulib-tests/test-isnanf-nolibm.c2
-rw-r--r--gettext-tools/gnulib-tests/test-isnanf.c2
-rw-r--r--gettext-tools/gnulib-tests/test-isnanf.h2
-rw-r--r--gettext-tools/gnulib-tests/test-isnanl-nolibm.c2
-rw-r--r--gettext-tools/gnulib-tests/test-isnanl.c2
-rw-r--r--gettext-tools/gnulib-tests/test-isnanl.h2
-rw-r--r--gettext-tools/gnulib-tests/test-iswblank.c2
-rw-r--r--gettext-tools/gnulib-tests/test-langinfo.c2
-rw-r--r--gettext-tools/gnulib-tests/test-linkedhash_list.c2
-rw-r--r--gettext-tools/gnulib-tests/test-locale.c2
-rw-r--r--gettext-tools/gnulib-tests/test-localename.c42
-rw-r--r--gettext-tools/gnulib-tests/test-lock.c2
-rw-r--r--gettext-tools/gnulib-tests/test-log10.c2
-rw-r--r--gettext-tools/gnulib-tests/test-log10.h2
-rw-r--r--gettext-tools/gnulib-tests/test-lseek.c2
-rw-r--r--gettext-tools/gnulib-tests/test-lstat.c2
-rw-r--r--gettext-tools/gnulib-tests/test-lstat.h2
-rw-r--r--gettext-tools/gnulib-tests/test-malloca.c2
-rw-r--r--gettext-tools/gnulib-tests/test-math.c2
-rw-r--r--gettext-tools/gnulib-tests/test-mbrtowc-w32.c2
-rw-r--r--gettext-tools/gnulib-tests/test-mbrtowc.c13
-rwxr-xr-xgettext-tools/gnulib-tests/test-mbrtowc5.sh6
-rw-r--r--gettext-tools/gnulib-tests/test-mbsinit.c2
-rw-r--r--gettext-tools/gnulib-tests/test-mbsrtowcs.c2
-rw-r--r--gettext-tools/gnulib-tests/test-mbsstr1.c2
-rw-r--r--gettext-tools/gnulib-tests/test-mbsstr2.c2
-rw-r--r--gettext-tools/gnulib-tests/test-mbsstr3.c2
-rw-r--r--gettext-tools/gnulib-tests/test-memchr.c2
-rw-r--r--gettext-tools/gnulib-tests/test-open.c2
-rw-r--r--gettext-tools/gnulib-tests/test-open.h2
-rw-r--r--gettext-tools/gnulib-tests/test-pathmax.c2
-rw-r--r--gettext-tools/gnulib-tests/test-pipe-filter-ii1.c2
-rw-r--r--gettext-tools/gnulib-tests/test-pipe-filter-ii2-child.c2
-rw-r--r--gettext-tools/gnulib-tests/test-pipe-filter-ii2-main.c2
-rwxr-xr-xgettext-tools/gnulib-tests/test-pipe-filter-ii2.sh2
-rw-r--r--gettext-tools/gnulib-tests/test-pipe2.c2
-rw-r--r--gettext-tools/gnulib-tests/test-posix_spawn1.c2
-rw-r--r--gettext-tools/gnulib-tests/test-posix_spawn2.c2
-rw-r--r--gettext-tools/gnulib-tests/test-posix_spawn_file_actions_addclose.c2
-rw-r--r--gettext-tools/gnulib-tests/test-posix_spawn_file_actions_adddup2.c2
-rw-r--r--gettext-tools/gnulib-tests/test-posix_spawn_file_actions_addopen.c2
-rw-r--r--gettext-tools/gnulib-tests/test-pow.c2
-rw-r--r--gettext-tools/gnulib-tests/test-quotearg-simple.c2
-rw-r--r--gettext-tools/gnulib-tests/test-quotearg.h2
-rw-r--r--gettext-tools/gnulib-tests/test-raise.c2
-rw-r--r--gettext-tools/gnulib-tests/test-rawmemchr.c2
-rw-r--r--gettext-tools/gnulib-tests/test-read-file.c2
-rw-r--r--gettext-tools/gnulib-tests/test-read.c2
-rw-r--r--gettext-tools/gnulib-tests/test-readlink.c2
-rw-r--r--gettext-tools/gnulib-tests/test-readlink.h2
-rw-r--r--gettext-tools/gnulib-tests/test-rmdir.c2
-rw-r--r--gettext-tools/gnulib-tests/test-rmdir.h2
-rw-r--r--gettext-tools/gnulib-tests/test-sameacls.c2
-rw-r--r--gettext-tools/gnulib-tests/test-sched.c2
-rw-r--r--gettext-tools/gnulib-tests/test-set-mode-acl.c2
-rw-r--r--gettext-tools/gnulib-tests/test-setenv.c2
-rw-r--r--gettext-tools/gnulib-tests/test-setlocale1.c4
-rw-r--r--gettext-tools/gnulib-tests/test-setlocale2.c2
-rw-r--r--gettext-tools/gnulib-tests/test-sh-quote.c2
-rw-r--r--gettext-tools/gnulib-tests/test-sigaction.c2
-rw-r--r--gettext-tools/gnulib-tests/test-signal-h.c2
-rw-r--r--gettext-tools/gnulib-tests/test-signbit.c2
-rw-r--r--gettext-tools/gnulib-tests/test-sigpipe.c2
-rw-r--r--gettext-tools/gnulib-tests/test-sigprocmask.c2
-rw-r--r--gettext-tools/gnulib-tests/test-sleep.c2
-rw-r--r--gettext-tools/gnulib-tests/test-snprintf.c2
-rw-r--r--gettext-tools/gnulib-tests/test-spawn-pipe-child.c2
-rw-r--r--gettext-tools/gnulib-tests/test-spawn-pipe-main.c2
-rw-r--r--gettext-tools/gnulib-tests/test-spawn.c2
-rw-r--r--gettext-tools/gnulib-tests/test-stat.c3
-rw-r--r--gettext-tools/gnulib-tests/test-stat.h3
-rw-r--r--gettext-tools/gnulib-tests/test-stdalign.c2
-rw-r--r--gettext-tools/gnulib-tests/test-stdbool.c2
-rw-r--r--gettext-tools/gnulib-tests/test-stddef.c2
-rw-r--r--gettext-tools/gnulib-tests/test-stdint.c2
-rw-r--r--gettext-tools/gnulib-tests/test-stdio.c2
-rw-r--r--gettext-tools/gnulib-tests/test-stdlib.c2
-rw-r--r--gettext-tools/gnulib-tests/test-strchrnul.c2
-rw-r--r--gettext-tools/gnulib-tests/test-strerror.c2
-rw-r--r--gettext-tools/gnulib-tests/test-striconv.c2
-rw-r--r--gettext-tools/gnulib-tests/test-striconveh.c2
-rw-r--r--gettext-tools/gnulib-tests/test-striconveha.c2
-rw-r--r--gettext-tools/gnulib-tests/test-string.c2
-rw-r--r--gettext-tools/gnulib-tests/test-strnlen.c2
-rw-r--r--gettext-tools/gnulib-tests/test-strstr.c2
-rw-r--r--gettext-tools/gnulib-tests/test-strtol.c2
-rw-r--r--gettext-tools/gnulib-tests/test-strtoul.c2
-rw-r--r--gettext-tools/gnulib-tests/test-symlink.c2
-rw-r--r--gettext-tools/gnulib-tests/test-symlink.h2
-rw-r--r--gettext-tools/gnulib-tests/test-sys_select.c2
-rw-r--r--gettext-tools/gnulib-tests/test-sys_stat.c2
-rw-r--r--gettext-tools/gnulib-tests/test-sys_time.c2
-rw-r--r--gettext-tools/gnulib-tests/test-sys_types.c2
-rw-r--r--gettext-tools/gnulib-tests/test-sys_wait.c2
-rw-r--r--gettext-tools/gnulib-tests/test-sys_wait.h2
-rw-r--r--gettext-tools/gnulib-tests/test-thread_create.c2
-rw-r--r--gettext-tools/gnulib-tests/test-thread_self.c2
-rw-r--r--gettext-tools/gnulib-tests/test-time.c2
-rw-r--r--gettext-tools/gnulib-tests/test-tls.c2
-rw-r--r--gettext-tools/gnulib-tests/test-unistd.c2
-rw-r--r--gettext-tools/gnulib-tests/test-unsetenv.c2
-rw-r--r--gettext-tools/gnulib-tests/test-vasnprintf-posix.c2
-rw-r--r--gettext-tools/gnulib-tests/test-vasnprintf.c2
-rw-r--r--gettext-tools/gnulib-tests/test-vasprintf.c2
-rw-r--r--gettext-tools/gnulib-tests/test-verify.c2
-rw-r--r--gettext-tools/gnulib-tests/test-vsnprintf.c2
-rw-r--r--gettext-tools/gnulib-tests/test-wchar.c2
-rw-r--r--gettext-tools/gnulib-tests/test-wcrtomb-w32.c2
-rw-r--r--gettext-tools/gnulib-tests/test-wcrtomb.c2
-rw-r--r--gettext-tools/gnulib-tests/test-wctype-h.c2
-rw-r--r--gettext-tools/gnulib-tests/test-wcwidth.c2
-rw-r--r--gettext-tools/gnulib-tests/test-write.c2
-rw-r--r--gettext-tools/gnulib-tests/test-xalloc-die.c2
-rwxr-xr-xgettext-tools/gnulib-tests/test-xalloc-die.sh2
-rw-r--r--gettext-tools/gnulib-tests/test-xmemdup0.c81
-rw-r--r--gettext-tools/gnulib-tests/test-xvasprintf.c2
-rw-r--r--gettext-tools/gnulib-tests/uniconv/test-u8-conv-from-enc.c2
-rw-r--r--gettext-tools/gnulib-tests/unilbrk/test-u8-width-linebreaks.c2
-rw-r--r--gettext-tools/gnulib-tests/uniname/test-uninames.c2
-rw-r--r--gettext-tools/gnulib-tests/unistr/test-cmp.h2
-rw-r--r--gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.c2
-rw-r--r--gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.h2
-rw-r--r--gettext-tools/gnulib-tests/unistr/test-u8-check.c2
-rw-r--r--gettext-tools/gnulib-tests/unistr/test-u8-cmp.c2
-rw-r--r--gettext-tools/gnulib-tests/unistr/test-u8-mblen.c2
-rw-r--r--gettext-tools/gnulib-tests/unistr/test-u8-mbtoucr.c2
-rw-r--r--gettext-tools/gnulib-tests/unistr/test-u8-prev.c2
-rw-r--r--gettext-tools/gnulib-tests/unistr/test-u8-strlen.c2
-rw-r--r--gettext-tools/gnulib-tests/unistr/test-u8-uctomb.c2
-rw-r--r--gettext-tools/gnulib-tests/unistr/u8-cmp.c2
-rw-r--r--gettext-tools/gnulib-tests/unistr/u8-strlen.c2
-rw-r--r--gettext-tools/gnulib-tests/wcrtomb.c2
-rw-r--r--gettext-tools/gnulib-tests/wctob.c2
-rw-r--r--gettext-tools/gnulib-tests/wctomb-impl.h2
-rw-r--r--gettext-tools/gnulib-tests/wctomb.c2
-rw-r--r--gettext-tools/gnulib-tests/zerosize-ptr.h2
238 files changed, 481 insertions, 296 deletions
diff --git a/gettext-tools/gnulib-tests/Makefile.am b/gettext-tools/gnulib-tests/Makefile.am
index c94eb22..df62499 100644
--- a/gettext-tools/gnulib-tests/Makefile.am
+++ b/gettext-tools/gnulib-tests/Makefile.am
@@ -1,5 +1,5 @@
## Makefile for the gettext-tools/gnulib-tests subdirectory of GNU gettext
-## Copyright (C) 2007, 2009-2010, 2015 Free Software Foundation, Inc.
+## Copyright (C) 2007, 2009-2010, 2015-2016 Free Software Foundation, Inc.
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/Makefile.gnulib b/gettext-tools/gnulib-tests/Makefile.gnulib
index fe5d64b..1d1f294 100644
--- a/gettext-tools/gnulib-tests/Makefile.gnulib
+++ b/gettext-tools/gnulib-tests/Makefile.gnulib
@@ -1,6 +1,6 @@
## DO NOT EDIT! GENERATED AUTOMATICALLY!
## Process this file with automake to produce Makefile.in.
-# Copyright (C) 2002-2015 Free Software Foundation, Inc.
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -834,6 +834,7 @@ EXTRA_DIST += test-math.c macros.h
TESTS += \
test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh \
+ test-mbrtowc5.sh \
test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh test-mbrtowc-w32-3.sh \
test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh
TESTS_ENVIRONMENT += \
@@ -842,8 +843,7 @@ TESTS_ENVIRONMENT += \
LOCALE_JA='@LOCALE_JA@' \
LOCALE_ZH_CN='@LOCALE_ZH_CN@'
check_PROGRAMS += test-mbrtowc test-mbrtowc-w32
-
-EXTRA_DIST += test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh test-mbrtowc.c test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh test-mbrtowc-w32-3.sh test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh test-mbrtowc-w32.c signature.h macros.h
+EXTRA_DIST += test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh test-mbrtowc5.sh test-mbrtowc.c test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh test-mbrtowc-w32-3.sh test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh test-mbrtowc-w32.c signature.h macros.h
## end gnulib module mbrtowc-tests
@@ -1789,6 +1789,11 @@ EXTRA_DIST += test-vasprintf.c signature.h macros.h
TESTS_ENVIRONMENT += MAKE='$(MAKE)'
TESTS += test-verify test-verify.sh
check_PROGRAMS += test-verify
+
+# This test expects compilation of test-verify.c to fail, and
+# each time it fails, the makefile rule does not perform the usual
+# "mv -f $name.Tpo $name.po, so tell make clean to remove that file.
+MOSTLYCLEANFILES += .deps/test-verify.Tpo
EXTRA_DIST += test-verify.c test-verify.sh
## end gnulib module verify-tests
@@ -1888,6 +1893,15 @@ EXTRA_DIST += test-xalloc-die.c test-xalloc-die.sh
## end gnulib module xalloc-die-tests
+## begin gnulib module xmemdup0-tests
+
+TESTS += test-xmemdup0
+check_PROGRAMS += test-xmemdup0
+test_xmemdup0_LDADD = $(LDADD) @LIBINTL@
+EXTRA_DIST += test-xmemdup0.c macros.h
+
+## end gnulib module xmemdup0-tests
+
## begin gnulib module xvasprintf-tests
TESTS += test-xvasprintf
diff --git a/gettext-tools/gnulib-tests/Makefile.in b/gettext-tools/gnulib-tests/Makefile.in
index d369eeb..26becd9 100644
--- a/gettext-tools/gnulib-tests/Makefile.in
+++ b/gettext-tools/gnulib-tests/Makefile.in
@@ -14,7 +14,7 @@
@SET_MAKE@
-# Copyright (C) 2002-2015 Free Software Foundation, Inc.
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -147,7 +147,7 @@ TESTS = test-set-mode-acl.sh test-set-mode-acl-1.sh \
test-log10$(EXEEXT) test-lseek.sh test-lstat$(EXEEXT) \
test-malloca$(EXEEXT) test-math$(EXEEXT) test-mbrtowc1.sh \
test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh \
- test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh \
+ test-mbrtowc5.sh test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh \
test-mbrtowc-w32-3.sh test-mbrtowc-w32-4.sh \
test-mbrtowc-w32-5.sh test-mbsinit.sh test-mbsrtowcs1.sh \
test-mbsrtowcs2.sh test-mbsrtowcs3.sh test-mbsrtowcs4.sh \
@@ -194,7 +194,7 @@ TESTS = test-set-mode-acl.sh test-set-mode-acl-1.sh \
test-wcrtomb-w32-3.sh test-wcrtomb-w32-4.sh \
test-wcrtomb-w32-5.sh test-wctype-h$(EXEEXT) \
test-wcwidth$(EXEEXT) test-write$(EXEEXT) test-xalloc-die.sh \
- test-xvasprintf$(EXEEXT)
+ test-xmemdup0$(EXEEXT) test-xvasprintf$(EXEEXT)
XFAIL_TESTS =
noinst_PROGRAMS =
check_PROGRAMS = test-set-mode-acl$(EXEEXT) test-copy-acl$(EXEEXT) \
@@ -278,7 +278,7 @@ check_PROGRAMS = test-set-mode-acl$(EXEEXT) test-copy-acl$(EXEEXT) \
test-wcrtomb$(EXEEXT) test-wcrtomb-w32$(EXEEXT) \
test-wctype-h$(EXEEXT) test-wcwidth$(EXEEXT) \
test-write$(EXEEXT) test-xalloc-die$(EXEEXT) \
- test-xvasprintf$(EXEEXT)
+ test-xmemdup0$(EXEEXT) test-xvasprintf$(EXEEXT)
@POSIX_SPAWN_PORTED_TRUE@am__append_1 = test-posix_spawn1 test-posix_spawn2
@POSIX_SPAWN_PORTED_TRUE@am__append_2 = test-posix_spawn1 test-posix_spawn2
@POSIX_SPAWN_PORTED_TRUE@am__append_3 = test-posix_spawn1.sh \
@@ -326,6 +326,7 @@ am__aclocal_m4_deps = \
$(top_srcdir)/gnulib-m4/ctype.m4 \
$(top_srcdir)/gnulib-m4/curses.m4 \
$(top_srcdir)/gnulib-m4/dirent_h.m4 \
+ $(top_srcdir)/gnulib-m4/dirfd.m4 \
$(top_srcdir)/gnulib-m4/double-slash-root.m4 \
$(top_srcdir)/gnulib-m4/dup.m4 $(top_srcdir)/gnulib-m4/dup2.m4 \
$(top_srcdir)/gnulib-m4/eaccess.m4 \
@@ -362,6 +363,7 @@ am__aclocal_m4_deps = \
$(top_srcdir)/gnulib-m4/gettimeofday.m4 \
$(top_srcdir)/gnulib-m4/gnulib-common.m4 \
$(top_srcdir)/gnulib-m4/gnulib-comp.m4 \
+ $(top_srcdir)/gnulib-m4/hard-locale.m4 \
$(top_srcdir)/gnulib-m4/iconv_h.m4 \
$(top_srcdir)/gnulib-m4/iconv_open.m4 \
$(top_srcdir)/gnulib-m4/include_next.m4 \
@@ -1421,6 +1423,9 @@ test_write_DEPENDENCIES = libtests.a ../gnulib-lib/libgettextlib.la \
test_xalloc_die_SOURCES = test-xalloc-die.c
test_xalloc_die_OBJECTS = test-xalloc-die.$(OBJEXT)
test_xalloc_die_DEPENDENCIES = $(am__DEPENDENCIES_2)
+test_xmemdup0_SOURCES = test-xmemdup0.c
+test_xmemdup0_OBJECTS = test-xmemdup0.$(OBJEXT)
+test_xmemdup0_DEPENDENCIES = $(am__DEPENDENCIES_2)
test_xvasprintf_SOURCES = test-xvasprintf.c
test_xvasprintf_OBJECTS = test-xvasprintf.$(OBJEXT)
test_xvasprintf_DEPENDENCIES = $(am__DEPENDENCIES_2)
@@ -1512,7 +1517,7 @@ SOURCES = $(libtests_a_SOURCES) $(EXTRA_libtests_a_SOURCES) \
test-vasnprintf.c test-vasprintf.c test-verify.c \
test-vsnprintf.c test-wchar.c test-wcrtomb.c \
test-wcrtomb-w32.c test-wctype-h.c test-wcwidth.c test-write.c \
- test-xalloc-die.c test-xvasprintf.c
+ test-xalloc-die.c test-xmemdup0.c test-xvasprintf.c
DIST_SOURCES = $(am__libtests_a_SOURCES_DIST) \
$(EXTRA_libtests_a_SOURCES) test-alignof.c test-alloca-opt.c \
test-areadlink.c test-argmatch.c test-array_list.c \
@@ -1568,7 +1573,7 @@ DIST_SOURCES = $(am__libtests_a_SOURCES_DIST) \
test-unsetenv.c test-vasnprintf.c test-vasprintf.c \
test-verify.c test-vsnprintf.c test-wchar.c test-wcrtomb.c \
test-wcrtomb-w32.c test-wctype-h.c test-wcwidth.c test-write.c \
- test-xalloc-die.c test-xvasprintf.c
+ test-xalloc-die.c test-xmemdup0.c test-xvasprintf.c
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
ctags-recursive dvi-recursive html-recursive info-recursive \
install-data-recursive install-dvi-recursive \
@@ -3272,8 +3277,8 @@ EXTRA_DIST = test-set-mode-acl.sh test-set-mode-acl-1.sh \
lseek.c test-lseek.c test-lseek.sh signature.h macros.h \
test-lstat.h test-lstat.c signature.h macros.h test-malloca.c \
test-math.c macros.h test-mbrtowc1.sh test-mbrtowc2.sh \
- test-mbrtowc3.sh test-mbrtowc4.sh test-mbrtowc.c \
- test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh \
+ test-mbrtowc3.sh test-mbrtowc4.sh test-mbrtowc5.sh \
+ test-mbrtowc.c test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh \
test-mbrtowc-w32-3.sh test-mbrtowc-w32-4.sh \
test-mbrtowc-w32-5.sh test-mbrtowc-w32.c signature.h macros.h \
test-mbsinit.sh test-mbsinit.c signature.h macros.h \
@@ -3370,7 +3375,8 @@ EXTRA_DIST = test-set-mode-acl.sh test-set-mode-acl-1.sh \
signature.h macros.h wctob.c wctomb-impl.h wctomb.c \
test-wctype-h.c macros.h test-wcwidth.c signature.h macros.h \
test-write.c signature.h macros.h test-xalloc-die.c \
- test-xalloc-die.sh test-xvasprintf.c macros.h
+ test-xalloc-die.sh test-xmemdup0.c macros.h test-xvasprintf.c \
+ macros.h
# The BUILT_SOURCES created by this Makefile snippet are not used via #include
# statements but through direct file reference. Therefore this snippet must be
@@ -3389,11 +3395,16 @@ EXTRA_DIST = test-set-mode-acl.sh test-set-mode-acl-1.sh \
BUILT_SOURCES = ctype.h inttypes.h $(am__append_3) arg-nonnull.h \
c++defs.h unused-parameter.h warn-on-use.h $(STDALIGN_H)
SUFFIXES =
+
+# This test expects compilation of test-verify.c to fail, and
+# each time it fails, the makefile rule does not perform the usual
+# "mv -f $name.Tpo $name.po, so tell make clean to remove that file.
MOSTLYCLEANFILES = core *.stackdump ctype.h ctype.h-t t-ftell3.tmp \
t-ftello3.tmp test-getdelim.txt test-getline.txt inttypes.h \
inttypes.h-t $(am__append_4) arg-nonnull.h arg-nonnull.h-t \
c++defs.h c++defs.h-t unused-parameter.h unused-parameter.h-t \
- warn-on-use.h warn-on-use.h-t stdalign.h stdalign.h-t
+ warn-on-use.h warn-on-use.h-t stdalign.h stdalign.h-t \
+ .deps/test-verify.Tpo
MOSTLYCLEANDIRS =
CLEANFILES =
DISTCLEANFILES =
@@ -3487,6 +3498,7 @@ test_u8_strlen_LDADD = $(LDADD) $(LIBUNISTRING)
test_u8_uctomb_SOURCES = unistr/test-u8-uctomb.c
test_u8_uctomb_LDADD = $(LDADD) $(LIBUNISTRING)
test_xalloc_die_LDADD = $(LDADD) @LIBINTL@
+test_xmemdup0_LDADD = $(LDADD) @LIBINTL@
test_xvasprintf_LDADD = $(LDADD) @LIBINTL@
all: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) all-recursive
@@ -4307,6 +4319,10 @@ test-xalloc-die$(EXEEXT): $(test_xalloc_die_OBJECTS) $(test_xalloc_die_DEPENDENC
@rm -f test-xalloc-die$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(test_xalloc_die_OBJECTS) $(test_xalloc_die_LDADD) $(LIBS)
+test-xmemdup0$(EXEEXT): $(test_xmemdup0_OBJECTS) $(test_xmemdup0_DEPENDENCIES) $(EXTRA_test_xmemdup0_DEPENDENCIES)
+ @rm -f test-xmemdup0$(EXEEXT)
+ $(AM_V_CCLD)$(LINK) $(test_xmemdup0_OBJECTS) $(test_xmemdup0_LDADD) $(LIBS)
+
test-xvasprintf$(EXEEXT): $(test_xvasprintf_OBJECTS) $(test_xvasprintf_DEPENDENCIES) $(EXTRA_test_xvasprintf_DEPENDENCIES)
@rm -f test-xvasprintf$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(test_xvasprintf_OBJECTS) $(test_xvasprintf_LDADD) $(LIBS)
@@ -4498,6 +4514,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-wcwidth.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-write.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-xalloc-die.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-xmemdup0.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-xvasprintf.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wcrtomb.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wctob.Po@am__quote@
@@ -5411,6 +5428,13 @@ test-mbrtowc4.sh.log: test-mbrtowc4.sh
--log-file $$b.log --trs-file $$b.trs \
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
"$$tst" $(AM_TESTS_FD_REDIRECT)
+test-mbrtowc5.sh.log: test-mbrtowc5.sh
+ @p='test-mbrtowc5.sh'; \
+ b='test-mbrtowc5.sh'; \
+ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+ --log-file $$b.log --trs-file $$b.trs \
+ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+ "$$tst" $(AM_TESTS_FD_REDIRECT)
test-mbrtowc-w32-1.sh.log: test-mbrtowc-w32-1.sh
@p='test-mbrtowc-w32-1.sh'; \
b='test-mbrtowc-w32-1.sh'; \
@@ -6153,6 +6177,13 @@ test-xalloc-die.sh.log: test-xalloc-die.sh
--log-file $$b.log --trs-file $$b.trs \
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
"$$tst" $(AM_TESTS_FD_REDIRECT)
+test-xmemdup0.log: test-xmemdup0$(EXEEXT)
+ @p='test-xmemdup0$(EXEEXT)'; \
+ b='test-xmemdup0'; \
+ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+ --log-file $$b.log --trs-file $$b.trs \
+ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+ "$$tst" $(AM_TESTS_FD_REDIRECT)
test-xvasprintf.log: test-xvasprintf$(EXEEXT)
@p='test-xvasprintf$(EXEEXT)'; \
b='test-xvasprintf'; \
diff --git a/gettext-tools/gnulib-tests/btowc.c b/gettext-tools/gnulib-tests/btowc.c
index 2e32dee..e7badf9 100644
--- a/gettext-tools/gnulib-tests/btowc.c
+++ b/gettext-tools/gnulib-tests/btowc.c
@@ -1,5 +1,5 @@
/* Convert unibyte character to wide character.
- Copyright (C) 2008, 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2010-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/ctype.in.h b/gettext-tools/gnulib-tests/ctype.in.h
index def19e9..217812d 100644
--- a/gettext-tools/gnulib-tests/ctype.in.h
+++ b/gettext-tools/gnulib-tests/ctype.in.h
@@ -1,6 +1,6 @@
/* A substitute for ISO C99 <ctype.h>, for platforms on which it is incomplete.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/dup.c b/gettext-tools/gnulib-tests/dup.c
index 20f0453..034fcf8 100644
--- a/gettext-tools/gnulib-tests/dup.c
+++ b/gettext-tools/gnulib-tests/dup.c
@@ -1,6 +1,6 @@
/* Duplicate an open file descriptor.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -45,6 +45,31 @@ dup_nothrow (int fd)
return result;
}
+#elif defined __KLIBC__
+# include <fcntl.h>
+# include <sys/stat.h>
+
+# include <InnoTekLIBC/backend.h>
+
+static int
+dup_nothrow (int fd)
+{
+ int dupfd;
+ struct stat sbuf;
+
+ dupfd = dup (fd);
+ if (dupfd == -1 && errno == ENOTSUP \
+ && !fstat (fd, &sbuf) && S_ISDIR (sbuf.st_mode))
+ {
+ char path[_MAX_PATH];
+
+ /* Get a path from fd */
+ if (!__libc_Back_ioFHToPath (fd, path, sizeof (path)))
+ dupfd = open (path, O_RDONLY);
+ }
+
+ return dupfd;
+}
#else
# define dup_nothrow dup
#endif
diff --git a/gettext-tools/gnulib-tests/fdopen.c b/gettext-tools/gnulib-tests/fdopen.c
index b72c0e8..61fbfdf 100644
--- a/gettext-tools/gnulib-tests/fdopen.c
+++ b/gettext-tools/gnulib-tests/fdopen.c
@@ -1,5 +1,5 @@
/* Open a stream with a given file descriptor.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/file-has-acl.c b/gettext-tools/gnulib-tests/file-has-acl.c
index 6027c2e..97d14be 100644
--- a/gettext-tools/gnulib-tests/file-has-acl.c
+++ b/gettext-tools/gnulib-tests/file-has-acl.c
@@ -1,6 +1,6 @@
/* Test whether a file has a nontrivial ACL. -*- coding: utf-8 -*-
- Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003, 2005-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/fpucw.h b/gettext-tools/gnulib-tests/fpucw.h
index b8cdf7e..05ee0ca 100644
--- a/gettext-tools/gnulib-tests/fpucw.h
+++ b/gettext-tools/gnulib-tests/fpucw.h
@@ -1,5 +1,5 @@
/* Manipulating the FPU control word. -*- coding: utf-8 -*-
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2007.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/ftell.c b/gettext-tools/gnulib-tests/ftell.c
index 7f11eb3..75ed1b2 100644
--- a/gettext-tools/gnulib-tests/ftell.c
+++ b/gettext-tools/gnulib-tests/ftell.c
@@ -1,5 +1,5 @@
/* An ftell() function that works around platform bugs.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/ftello.c b/gettext-tools/gnulib-tests/ftello.c
index d6f221a..4c18ed1 100644
--- a/gettext-tools/gnulib-tests/ftello.c
+++ b/gettext-tools/gnulib-tests/ftello.c
@@ -1,5 +1,5 @@
/* An ftello() function that works around platform bugs.
- Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/getcwd-lgpl.c b/gettext-tools/gnulib-tests/getcwd-lgpl.c
index 1e17e19..c553f7b 100644
--- a/gettext-tools/gnulib-tests/getcwd-lgpl.c
+++ b/gettext-tools/gnulib-tests/getcwd-lgpl.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2011-2016 Free Software Foundation, Inc.
This file is part of gnulib.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/getpagesize.c b/gettext-tools/gnulib-tests/getpagesize.c
index 10e9c18..dc4a200 100644
--- a/gettext-tools/gnulib-tests/getpagesize.c
+++ b/gettext-tools/gnulib-tests/getpagesize.c
@@ -1,6 +1,6 @@
/* getpagesize emulation for systems where it cannot be done in a C macro.
- Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/glthread/thread.c b/gettext-tools/gnulib-tests/glthread/thread.c
index d3829ce..cbfcc91 100644
--- a/gettext-tools/gnulib-tests/glthread/thread.c
+++ b/gettext-tools/gnulib-tests/glthread/thread.c
@@ -1,5 +1,5 @@
/* Creating and controlling threads.
- Copyright (C) 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/glthread/thread.h b/gettext-tools/gnulib-tests/glthread/thread.h
index 2817437..aa0b1ae 100644
--- a/gettext-tools/gnulib-tests/glthread/thread.h
+++ b/gettext-tools/gnulib-tests/glthread/thread.h
@@ -1,5 +1,5 @@
/* Creating and controlling threads.
- Copyright (C) 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/glthread/yield.h b/gettext-tools/gnulib-tests/glthread/yield.h
index b18db5b..19224c6 100644
--- a/gettext-tools/gnulib-tests/glthread/yield.h
+++ b/gettext-tools/gnulib-tests/glthread/yield.h
@@ -1,5 +1,5 @@
/* Yielding the processor to other threads and processes.
- Copyright (C) 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/infinity.h b/gettext-tools/gnulib-tests/infinity.h
index 45c30bd..ce23759 100644
--- a/gettext-tools/gnulib-tests/infinity.h
+++ b/gettext-tools/gnulib-tests/infinity.h
@@ -1,5 +1,5 @@
/* Macros for infinity.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/init.sh b/gettext-tools/gnulib-tests/init.sh
index d366206..97e4e4b 100644
--- a/gettext-tools/gnulib-tests/init.sh
+++ b/gettext-tools/gnulib-tests/init.sh
@@ -1,6 +1,6 @@
# source this file; set up for tests
-# Copyright (C) 2009-2015 Free Software Foundation, Inc.
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -308,13 +308,19 @@ if diff_out_=`exec 2>/dev/null; diff -u "$0" "$0" < /dev/null` \
fi
}
fi
-elif diff_out_=`exec 2>/dev/null; diff -c "$0" "$0" < /dev/null`; then
+elif
+ for diff_opt_ in -U3 -c '' no; do
+ test "$diff_opt_" = no && break
+ diff_out_=`exec 2>/dev/null; diff $diff_opt_ "$0" "$0" </dev/null` && break
+ done
+ test "$diff_opt_" != no
+then
if test -z "$diff_out_"; then
- compare_ () { diff -c "$@"; }
+ compare_ () { diff $diff_opt_ "$@"; }
else
compare_ ()
{
- if diff -c "$@" > diff.out; then
+ if diff $diff_opt_ "$@" > diff.out; then
# No differences were found, but AIX and HP-UX 'diff' produce output
# "No differences encountered" or "There are no differences between the
# files.". Hide this output.
@@ -327,7 +333,7 @@ elif diff_out_=`exec 2>/dev/null; diff -c "$0" "$0" < /dev/null`; then
fi
}
fi
-elif ( cmp --version < /dev/null 2>&1 | grep GNU ) > /dev/null 2>&1; then
+elif cmp -s /dev/null /dev/null 2>/dev/null; then
compare_ () { cmp -s "$@"; }
else
compare_ () { cmp "$@"; }
@@ -466,7 +472,6 @@ setup_ ()
fi
initial_cwd_=$PWD
- fail=0
pfx_=`testdir_prefix_`
test_dir_=`mktempd_ "$initial_cwd_" "$pfx_-$ME_.XXXX"` \
@@ -550,8 +555,9 @@ mktempd_ ()
# Disallow any trailing slash on specified destdir:
# it would subvert the post-mktemp "case"-based destdir test.
case $destdir_ in
- /) ;;
+ / | //) destdir_slash_=$destdir;;
*/) fail_ "invalid destination dir: remove trailing slash(es)";;
+ *) destdir_slash_=$destdir_/;;
esac
case $template_ in
@@ -561,20 +567,17 @@ mktempd_ ()
esac
# First, try to use mktemp.
- d=`unset TMPDIR; { mktemp -d -t -p "$destdir_" "$template_"; } 2>/dev/null` \
- || fail=1
+ d=`unset TMPDIR; { mktemp -d -t -p "$destdir_" "$template_"; } 2>/dev/null` &&
# The resulting name must be in the specified directory.
- case $d in "$destdir_"*);; *) fail=1;; esac
+ case $d in "$destdir_slash_"*) :;; *) false;; esac &&
# It must have created the directory.
- test -d "$d" || fail=1
+ test -d "$d" &&
# It must have 0700 permissions. Handle sticky "S" bits.
- perms=`ls -dgo "$d" 2>/dev/null|tr S -` || fail=1
- case $perms in drwx------*) ;; *) fail=1;; esac
-
- test $fail = 0 && {
+ perms=`ls -dgo "$d" 2>/dev/null` &&
+ case $perms in drwx--[-S]---*) :;; *) false;; esac && {
echo "$d"
return
}
@@ -593,7 +596,7 @@ mktempd_ ()
i_=1
while :; do
X_=`rand_bytes_ $nx_`
- candidate_dir_="$destdir_/$base_template_$X_"
+ candidate_dir_="$destdir_slash_$base_template_$X_"
err_=`mkdir -m 0700 "$candidate_dir_" 2>&1` \
&& { echo "$candidate_dir_"; return; }
test $MAX_TRIES_ -le $i_ && break;
diff --git a/gettext-tools/gnulib-tests/inttypes.in.h b/gettext-tools/gnulib-tests/inttypes.in.h
index 78846f6..ed09db6 100644
--- a/gettext-tools/gnulib-tests/inttypes.in.h
+++ b/gettext-tools/gnulib-tests/inttypes.in.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2006-2015 Free Software Foundation, Inc.
+/* Copyright (C) 2006-2016 Free Software Foundation, Inc.
Written by Paul Eggert, Bruno Haible, Derek Price.
This file is part of gnulib.
diff --git a/gettext-tools/gnulib-tests/lseek.c b/gettext-tools/gnulib-tests/lseek.c
index fdec6cd..2a95a07 100644
--- a/gettext-tools/gnulib-tests/lseek.c
+++ b/gettext-tools/gnulib-tests/lseek.c
@@ -1,5 +1,5 @@
/* An lseek() function that detects pipes.
- Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/macros.h b/gettext-tools/gnulib-tests/macros.h
index b6fdd1c..578bfe7 100644
--- a/gettext-tools/gnulib-tests/macros.h
+++ b/gettext-tools/gnulib-tests/macros.h
@@ -1,5 +1,5 @@
/* Common macros used by gnulib tests.
- Copyright (C) 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/mbtowc-impl.h b/gettext-tools/gnulib-tests/mbtowc-impl.h
index 5c60478..4be2994 100644
--- a/gettext-tools/gnulib-tests/mbtowc-impl.h
+++ b/gettext-tools/gnulib-tests/mbtowc-impl.h
@@ -1,5 +1,5 @@
/* Convert multibyte character to wide character.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2011.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/mbtowc.c b/gettext-tools/gnulib-tests/mbtowc.c
index e58053d..fb2b651 100644
--- a/gettext-tools/gnulib-tests/mbtowc.c
+++ b/gettext-tools/gnulib-tests/mbtowc.c
@@ -1,5 +1,5 @@
/* Convert multibyte character to wide character.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2011.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/minus-zero.h b/gettext-tools/gnulib-tests/minus-zero.h
index 79291ee..d10d060 100644
--- a/gettext-tools/gnulib-tests/minus-zero.h
+++ b/gettext-tools/gnulib-tests/minus-zero.h
@@ -1,5 +1,5 @@
/* Macros for floating-point negative zero.
- Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/nan.h b/gettext-tools/gnulib-tests/nan.h
index 9f6819c..2578eb5 100644
--- a/gettext-tools/gnulib-tests/nan.h
+++ b/gettext-tools/gnulib-tests/nan.h
@@ -1,5 +1,5 @@
/* Macros for not-a-number.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/putenv.c b/gettext-tools/gnulib-tests/putenv.c
index 925bb2f..e67712d 100644
--- a/gettext-tools/gnulib-tests/putenv.c
+++ b/gettext-tools/gnulib-tests/putenv.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1994, 1997-1998, 2000, 2003-2015 Free Software
+/* Copyright (C) 1991, 1994, 1997-1998, 2000, 2003-2016 Free Software
Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C
diff --git a/gettext-tools/gnulib-tests/randomd.c b/gettext-tools/gnulib-tests/randomd.c
index 9642428..afdc7fb 100644
--- a/gettext-tools/gnulib-tests/randomd.c
+++ b/gettext-tools/gnulib-tests/randomd.c
@@ -1,5 +1,5 @@
/* Some random 'double' numbers used by gnulib tests.
- Copyright (C) 2012-2015 Free Software Foundation, Inc.
+ Copyright (C) 2012-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/read-file.c b/gettext-tools/gnulib-tests/read-file.c
index f17c599..f7b1199 100644
--- a/gettext-tools/gnulib-tests/read-file.c
+++ b/gettext-tools/gnulib-tests/read-file.c
@@ -1,5 +1,5 @@
/* read-file.c -- read file contents into a string
- Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2009-2016 Free Software Foundation, Inc.
Written by Simon Josefsson and Bruno Haible.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/read-file.h b/gettext-tools/gnulib-tests/read-file.h
index b869c5c..6248065 100644
--- a/gettext-tools/gnulib-tests/read-file.h
+++ b/gettext-tools/gnulib-tests/read-file.h
@@ -1,5 +1,5 @@
/* read-file.h -- read file contents into a string
- Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2009-2016 Free Software Foundation, Inc.
Written by Simon Josefsson.
This program is free software; you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/same-inode.h b/gettext-tools/gnulib-tests/same-inode.h
index ecc3049..bf45635 100644
--- a/gettext-tools/gnulib-tests/same-inode.h
+++ b/gettext-tools/gnulib-tests/same-inode.h
@@ -1,6 +1,6 @@
/* Determine whether two stat buffers refer to the same file.
- Copyright (C) 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/signature.h b/gettext-tools/gnulib-tests/signature.h
index 0a6cf91..2df8067 100644
--- a/gettext-tools/gnulib-tests/signature.h
+++ b/gettext-tools/gnulib-tests/signature.h
@@ -1,5 +1,5 @@
/* Macro for checking that a function declaration is compliant.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/sleep.c b/gettext-tools/gnulib-tests/sleep.c
index b86ec6f..997285e 100644
--- a/gettext-tools/gnulib-tests/sleep.c
+++ b/gettext-tools/gnulib-tests/sleep.c
@@ -1,5 +1,5 @@
/* Pausing execution of the current thread.
- Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2007.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/stdalign.in.h b/gettext-tools/gnulib-tests/stdalign.in.h
index b16ccc8..12f8a15 100644
--- a/gettext-tools/gnulib-tests/stdalign.in.h
+++ b/gettext-tools/gnulib-tests/stdalign.in.h
@@ -1,6 +1,6 @@
/* A substitute for ISO C11 <stdalign.h>.
- Copyright 2011-2015 Free Software Foundation, Inc.
+ Copyright 2011-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -103,15 +103,15 @@
# elif ((defined __APPLE__ && defined __MACH__ \
? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
: __GNUC__) \
- || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
- || __ICC || 0x590 <= __SUNPRO_C)
+ || 061200 <= __HP_cc || 061200 <= __HP_aCC \
+ || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__)
# define _Alignas(a) __attribute__ ((__aligned__ (a)))
# elif 1300 <= _MSC_VER
# define _Alignas(a) __declspec (align (a))
# endif
#endif
#if ((defined _Alignas && ! (defined __cplusplus && 201103 <= __cplusplus)) \
- || (defined __STDC_VERSION && 201112 <= __STDC_VERSION__))
+ || (defined __STDC_VERSION__ && 201112 <= __STDC_VERSION__))
# define alignas _Alignas
#endif
#if defined alignas || (defined __cplusplus && 201103 <= __cplusplus)
diff --git a/gettext-tools/gnulib-tests/stdio-impl.h b/gettext-tools/gnulib-tests/stdio-impl.h
index 502d891..987897a 100644
--- a/gettext-tools/gnulib-tests/stdio-impl.h
+++ b/gettext-tools/gnulib-tests/stdio-impl.h
@@ -1,5 +1,5 @@
/* Implementation details of FILE streams.
- Copyright (C) 2007-2008, 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2008, 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/symlink.c b/gettext-tools/gnulib-tests/symlink.c
index 14356c3..d8684b6 100644
--- a/gettext-tools/gnulib-tests/symlink.c
+++ b/gettext-tools/gnulib-tests/symlink.c
@@ -1,5 +1,5 @@
/* Stub for symlink().
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-alignof.c b/gettext-tools/gnulib-tests/test-alignof.c
index a04d69b..2af76f5 100644
--- a/gettext-tools/gnulib-tests/test-alignof.c
+++ b/gettext-tools/gnulib-tests/test-alignof.c
@@ -1,5 +1,5 @@
/* Test of <alignof.h>.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-alloca-opt.c b/gettext-tools/gnulib-tests/test-alloca-opt.c
index c189cc6..b9aaa4a 100644
--- a/gettext-tools/gnulib-tests/test-alloca-opt.c
+++ b/gettext-tools/gnulib-tests/test-alloca-opt.c
@@ -1,5 +1,5 @@
/* Test of optional automatic memory allocation.
- Copyright (C) 2005, 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-areadlink.c b/gettext-tools/gnulib-tests/test-areadlink.c
index 682c03b..738a498 100644
--- a/gettext-tools/gnulib-tests/test-areadlink.c
+++ b/gettext-tools/gnulib-tests/test-areadlink.c
@@ -1,5 +1,5 @@
/* Tests of areadlink.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-areadlink.h b/gettext-tools/gnulib-tests/test-areadlink.h
index a93c9eb..3251ca2 100644
--- a/gettext-tools/gnulib-tests/test-areadlink.h
+++ b/gettext-tools/gnulib-tests/test-areadlink.h
@@ -1,5 +1,5 @@
/* Tests of areadlink and friends.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-argmatch.c b/gettext-tools/gnulib-tests/test-argmatch.c
index e6802b7..9a3a4a9 100644
--- a/gettext-tools/gnulib-tests/test-argmatch.c
+++ b/gettext-tools/gnulib-tests/test-argmatch.c
@@ -1,5 +1,5 @@
/* Test of exact or abbreviated match search.
- Copyright (C) 1990, 1998-1999, 2001-2015 Free Software Foundation, Inc.
+ Copyright (C) 1990, 1998-1999, 2001-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-array_list.c b/gettext-tools/gnulib-tests/test-array_list.c
index a2aca72..88e2bb2 100644
--- a/gettext-tools/gnulib-tests/test-array_list.c
+++ b/gettext-tools/gnulib-tests/test-array_list.c
@@ -1,5 +1,5 @@
/* Test of sequential list data type implementation.
- Copyright (C) 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2007.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-atexit.c b/gettext-tools/gnulib-tests/test-atexit.c
index aec7cd5..3a3e208 100644
--- a/gettext-tools/gnulib-tests/test-atexit.c
+++ b/gettext-tools/gnulib-tests/test-atexit.c
@@ -1,5 +1,5 @@
/* Test of execution of program termination handlers.
- Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-binary-io.c b/gettext-tools/gnulib-tests/test-binary-io.c
index 9c3f8f2..6801e96 100644
--- a/gettext-tools/gnulib-tests/test-binary-io.c
+++ b/gettext-tools/gnulib-tests/test-binary-io.c
@@ -1,5 +1,5 @@
/* Test of binary mode I/O.
- Copyright (C) 2005, 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-btowc.c b/gettext-tools/gnulib-tests/test-btowc.c
index be34739..9953ac4 100644
--- a/gettext-tools/gnulib-tests/test-btowc.c
+++ b/gettext-tools/gnulib-tests/test-btowc.c
@@ -1,5 +1,5 @@
/* Test of conversion of unibyte character to wide character.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-byteswap.c b/gettext-tools/gnulib-tests/test-byteswap.c
index 66ef8d8..909bd54 100644
--- a/gettext-tools/gnulib-tests/test-byteswap.c
+++ b/gettext-tools/gnulib-tests/test-byteswap.c
@@ -1,5 +1,5 @@
/* Test of <byteswap.h> substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-c-ctype.c b/gettext-tools/gnulib-tests/test-c-ctype.c
index 9780554..184cdec 100644
--- a/gettext-tools/gnulib-tests/test-c-ctype.c
+++ b/gettext-tools/gnulib-tests/test-c-ctype.c
@@ -1,5 +1,5 @@
/* Test of character handling in C locale.
- Copyright (C) 2005, 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-c-strcasecmp.c b/gettext-tools/gnulib-tests/test-c-strcasecmp.c
index f7f6b43..37f9431 100644
--- a/gettext-tools/gnulib-tests/test-c-strcasecmp.c
+++ b/gettext-tools/gnulib-tests/test-c-strcasecmp.c
@@ -1,5 +1,5 @@
/* Test of case-insensitive string comparison function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-c-strcasestr.c b/gettext-tools/gnulib-tests/test-c-strcasestr.c
index 84d6107..e9d4a81 100644
--- a/gettext-tools/gnulib-tests/test-c-strcasestr.c
+++ b/gettext-tools/gnulib-tests/test-c-strcasestr.c
@@ -1,5 +1,5 @@
/* Test of case-insensitive searching in a string.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-c-strncasecmp.c b/gettext-tools/gnulib-tests/test-c-strncasecmp.c
index 4027b5b..1ca42d8 100644
--- a/gettext-tools/gnulib-tests/test-c-strncasecmp.c
+++ b/gettext-tools/gnulib-tests/test-c-strncasecmp.c
@@ -1,5 +1,5 @@
/* Test of case-insensitive string comparison function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-c-strstr.c b/gettext-tools/gnulib-tests/test-c-strstr.c
index 2bc2d9e..abfd400 100644
--- a/gettext-tools/gnulib-tests/test-c-strstr.c
+++ b/gettext-tools/gnulib-tests/test-c-strstr.c
@@ -1,5 +1,5 @@
/* Test of searching in a string.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c b/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c
index 12d2bb0..e5f0adb 100644
--- a/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c
+++ b/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c
@@ -1,5 +1,5 @@
/* Test of execution of program termination handlers.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-cloexec.c b/gettext-tools/gnulib-tests/test-cloexec.c
index c4feeba..1c0be99 100644
--- a/gettext-tools/gnulib-tests/test-cloexec.c
+++ b/gettext-tools/gnulib-tests/test-cloexec.c
@@ -1,5 +1,5 @@
/* Test duplicating non-inheritable file descriptors.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-close.c b/gettext-tools/gnulib-tests/test-close.c
index 457a7bc..a0428e0 100644
--- a/gettext-tools/gnulib-tests/test-close.c
+++ b/gettext-tools/gnulib-tests/test-close.c
@@ -1,5 +1,5 @@
/* Test closing a file or socket.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-copy-acl.c b/gettext-tools/gnulib-tests/test-copy-acl.c
index 1c5227f..93bcf42 100644
--- a/gettext-tools/gnulib-tests/test-copy-acl.c
+++ b/gettext-tools/gnulib-tests/test-copy-acl.c
@@ -1,5 +1,5 @@
/* Test of copying of files.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-copy-file.c b/gettext-tools/gnulib-tests/test-copy-file.c
index a99e463..57bd930 100644
--- a/gettext-tools/gnulib-tests/test-copy-file.c
+++ b/gettext-tools/gnulib-tests/test-copy-file.c
@@ -1,5 +1,5 @@
/* Test of copying of files.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-ctype.c b/gettext-tools/gnulib-tests/test-ctype.c
index 58750e1..570fbdb 100644
--- a/gettext-tools/gnulib-tests/test-ctype.c
+++ b/gettext-tools/gnulib-tests/test-ctype.c
@@ -1,5 +1,5 @@
/* Test of <ctype.h> substitute.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-dirent.c b/gettext-tools/gnulib-tests/test-dirent.c
index 243b92b..50a0c95 100644
--- a/gettext-tools/gnulib-tests/test-dirent.c
+++ b/gettext-tools/gnulib-tests/test-dirent.c
@@ -1,5 +1,5 @@
/* Test of <dirent.h> substitute.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-dup-safer.c b/gettext-tools/gnulib-tests/test-dup-safer.c
index 7f6427c..fdae635 100644
--- a/gettext-tools/gnulib-tests/test-dup-safer.c
+++ b/gettext-tools/gnulib-tests/test-dup-safer.c
@@ -1,5 +1,5 @@
/* Test that dup_safer leaves standard fds alone.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-dup.c b/gettext-tools/gnulib-tests/test-dup.c
index b7b768e..c62b06f 100644
--- a/gettext-tools/gnulib-tests/test-dup.c
+++ b/gettext-tools/gnulib-tests/test-dup.c
@@ -1,5 +1,5 @@
/* Test duplicating a file descriptor.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-dup2.c b/gettext-tools/gnulib-tests/test-dup2.c
index be475ea..5da6812 100644
--- a/gettext-tools/gnulib-tests/test-dup2.c
+++ b/gettext-tools/gnulib-tests/test-dup2.c
@@ -1,5 +1,5 @@
/* Test duplicating file descriptors.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-environ.c b/gettext-tools/gnulib-tests/test-environ.c
index 8395e9d..3681325 100644
--- a/gettext-tools/gnulib-tests/test-environ.c
+++ b/gettext-tools/gnulib-tests/test-environ.c
@@ -1,5 +1,5 @@
/* Test of environ variable.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-errno.c b/gettext-tools/gnulib-tests/test-errno.c
index fab35d0..1e0bb6d 100644
--- a/gettext-tools/gnulib-tests/test-errno.c
+++ b/gettext-tools/gnulib-tests/test-errno.c
@@ -1,5 +1,5 @@
/* Test of <errno.h> substitute.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-fabs.c b/gettext-tools/gnulib-tests/test-fabs.c
index 0e90681..5691884 100644
--- a/gettext-tools/gnulib-tests/test-fabs.c
+++ b/gettext-tools/gnulib-tests/test-fabs.c
@@ -1,5 +1,5 @@
/* Test of fabs() function.
- Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-fabs.h b/gettext-tools/gnulib-tests/test-fabs.h
index 1edf8ef..14f4914 100644
--- a/gettext-tools/gnulib-tests/test-fabs.h
+++ b/gettext-tools/gnulib-tests/test-fabs.h
@@ -1,5 +1,5 @@
/* Test of fabs*() function family.
- Copyright (C) 2012-2015 Free Software Foundation, Inc.
+ Copyright (C) 2012-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-fcntl-h.c b/gettext-tools/gnulib-tests/test-fcntl-h.c
index e177b3e..aef1661 100644
--- a/gettext-tools/gnulib-tests/test-fcntl-h.c
+++ b/gettext-tools/gnulib-tests/test-fcntl-h.c
@@ -1,5 +1,5 @@
/* Test of <fcntl.h> substitute.
- Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-fcntl.c b/gettext-tools/gnulib-tests/test-fcntl.c
index fed914b..974ee33 100644
--- a/gettext-tools/gnulib-tests/test-fcntl.c
+++ b/gettext-tools/gnulib-tests/test-fcntl.c
@@ -1,5 +1,5 @@
/* Test of fcntl(2).
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-fdopen.c b/gettext-tools/gnulib-tests/test-fdopen.c
index c4e0355..55b49a6 100644
--- a/gettext-tools/gnulib-tests/test-fdopen.c
+++ b/gettext-tools/gnulib-tests/test-fdopen.c
@@ -1,5 +1,5 @@
/* Test opening a stream with a file descriptor.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-fgetc.c b/gettext-tools/gnulib-tests/test-fgetc.c
index 63e1e4a..c62e70c 100644
--- a/gettext-tools/gnulib-tests/test-fgetc.c
+++ b/gettext-tools/gnulib-tests/test-fgetc.c
@@ -1,5 +1,5 @@
/* Test of fgetc() function.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-file-has-acl.c b/gettext-tools/gnulib-tests/test-file-has-acl.c
index 0f33e0c..8a446a6 100644
--- a/gettext-tools/gnulib-tests/test-file-has-acl.c
+++ b/gettext-tools/gnulib-tests/test-file-has-acl.c
@@ -1,5 +1,5 @@
/* Test for presence of ACL.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-float.c b/gettext-tools/gnulib-tests/test-float.c
index 8b62133..a5f33b6 100644
--- a/gettext-tools/gnulib-tests/test-float.c
+++ b/gettext-tools/gnulib-tests/test-float.c
@@ -1,5 +1,5 @@
/* Test of <float.h> substitute.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-fnmatch.c b/gettext-tools/gnulib-tests/test-fnmatch.c
index 970b284..c110409 100644
--- a/gettext-tools/gnulib-tests/test-fnmatch.c
+++ b/gettext-tools/gnulib-tests/test-fnmatch.c
@@ -1,5 +1,5 @@
/* Test of fnmatch string matching function.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-fopen.c b/gettext-tools/gnulib-tests/test-fopen.c
index 7b5d70c..22ef2ff 100644
--- a/gettext-tools/gnulib-tests/test-fopen.c
+++ b/gettext-tools/gnulib-tests/test-fopen.c
@@ -1,5 +1,5 @@
/* Test of opening a file stream.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-fopen.h b/gettext-tools/gnulib-tests/test-fopen.h
index 4747dc6..3d72466 100644
--- a/gettext-tools/gnulib-tests/test-fopen.h
+++ b/gettext-tools/gnulib-tests/test-fopen.h
@@ -1,5 +1,5 @@
/* Test of opening a file stream.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-fputc.c b/gettext-tools/gnulib-tests/test-fputc.c
index 41ae096..95a1cb6 100644
--- a/gettext-tools/gnulib-tests/test-fputc.c
+++ b/gettext-tools/gnulib-tests/test-fputc.c
@@ -1,5 +1,5 @@
/* Test of fputc() function.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-fread.c b/gettext-tools/gnulib-tests/test-fread.c
index 41cea56..b9fc72a 100644
--- a/gettext-tools/gnulib-tests/test-fread.c
+++ b/gettext-tools/gnulib-tests/test-fread.c
@@ -1,5 +1,5 @@
/* Test of fread() function.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-fstat.c b/gettext-tools/gnulib-tests/test-fstat.c
index 7f39363..c9ac749 100644
--- a/gettext-tools/gnulib-tests/test-fstat.c
+++ b/gettext-tools/gnulib-tests/test-fstat.c
@@ -1,5 +1,5 @@
/* Tests of fstat() function.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-fstrcmp.c b/gettext-tools/gnulib-tests/test-fstrcmp.c
index 7e00535..c109444 100644
--- a/gettext-tools/gnulib-tests/test-fstrcmp.c
+++ b/gettext-tools/gnulib-tests/test-fstrcmp.c
@@ -1,5 +1,5 @@
/* Test of fuzzy string comparison.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-ftell.c b/gettext-tools/gnulib-tests/test-ftell.c
index 2853226..9b52344 100644
--- a/gettext-tools/gnulib-tests/test-ftell.c
+++ b/gettext-tools/gnulib-tests/test-ftell.c
@@ -1,5 +1,5 @@
/* Test of ftell() function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-ftell3.c b/gettext-tools/gnulib-tests/test-ftell3.c
index 8a95e1c..695e5b2 100644
--- a/gettext-tools/gnulib-tests/test-ftell3.c
+++ b/gettext-tools/gnulib-tests/test-ftell3.c
@@ -1,5 +1,5 @@
/* Test of ftell() function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-ftello.c b/gettext-tools/gnulib-tests/test-ftello.c
index b9b5c96..369d476 100644
--- a/gettext-tools/gnulib-tests/test-ftello.c
+++ b/gettext-tools/gnulib-tests/test-ftello.c
@@ -1,5 +1,5 @@
/* Test of ftello() function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-ftello3.c b/gettext-tools/gnulib-tests/test-ftello3.c
index 67b4671..f75ce03 100644
--- a/gettext-tools/gnulib-tests/test-ftello3.c
+++ b/gettext-tools/gnulib-tests/test-ftello3.c
@@ -1,5 +1,5 @@
/* Test of ftello() function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-ftello4.c b/gettext-tools/gnulib-tests/test-ftello4.c
index 68e6459..1f94ef6 100644
--- a/gettext-tools/gnulib-tests/test-ftello4.c
+++ b/gettext-tools/gnulib-tests/test-ftello4.c
@@ -1,5 +1,5 @@
/* Test of ftello() function.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-fwrite.c b/gettext-tools/gnulib-tests/test-fwrite.c
index df4114c..bc285f3 100644
--- a/gettext-tools/gnulib-tests/test-fwrite.c
+++ b/gettext-tools/gnulib-tests/test-fwrite.c
@@ -1,5 +1,5 @@
/* Test of fwrite() function.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-getcwd-lgpl.c b/gettext-tools/gnulib-tests/test-getcwd-lgpl.c
index de1728b..6bea7b7 100644
--- a/gettext-tools/gnulib-tests/test-getcwd-lgpl.c
+++ b/gettext-tools/gnulib-tests/test-getcwd-lgpl.c
@@ -1,5 +1,5 @@
/* Test of getcwd() function.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-getdelim.c b/gettext-tools/gnulib-tests/test-getdelim.c
index bbcc3cd..0770d5b 100644
--- a/gettext-tools/gnulib-tests/test-getdelim.c
+++ b/gettext-tools/gnulib-tests/test-getdelim.c
@@ -1,5 +1,5 @@
/* Test of getdelim() function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-getdtablesize.c b/gettext-tools/gnulib-tests/test-getdtablesize.c
index a0325af..54efa04 100644
--- a/gettext-tools/gnulib-tests/test-getdtablesize.c
+++ b/gettext-tools/gnulib-tests/test-getdtablesize.c
@@ -1,5 +1,5 @@
/* Test of getdtablesize() function.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-getline.c b/gettext-tools/gnulib-tests/test-getline.c
index 238742c..13dcb1d 100644
--- a/gettext-tools/gnulib-tests/test-getline.c
+++ b/gettext-tools/gnulib-tests/test-getline.c
@@ -1,5 +1,5 @@
/* Test of getline() function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -71,8 +71,8 @@ main (void)
free (line);
/* Test growth of buffer, must not leak. */
- line = malloc (1);
- len = 0;
+ len = 1;
+ line = malloc (len);
result = getline (&line, &len, f);
ASSERT (result == 3);
ASSERT (strcmp (line, "bc\n") == 0);
diff --git a/gettext-tools/gnulib-tests/test-getopt.c b/gettext-tools/gnulib-tests/test-getopt.c
index a0ae340..505cb2a 100644
--- a/gettext-tools/gnulib-tests/test-getopt.c
+++ b/gettext-tools/gnulib-tests/test-getopt.c
@@ -1,5 +1,5 @@
/* Test of command line argument processing.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-getopt.h b/gettext-tools/gnulib-tests/test-getopt.h
index caaaa31..8e61eb2 100644
--- a/gettext-tools/gnulib-tests/test-getopt.h
+++ b/gettext-tools/gnulib-tests/test-getopt.h
@@ -1,5 +1,5 @@
/* Test of command line argument processing.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-getopt_long.h b/gettext-tools/gnulib-tests/test-getopt_long.h
index 1094f3c..0f83f47 100644
--- a/gettext-tools/gnulib-tests/test-getopt_long.h
+++ b/gettext-tools/gnulib-tests/test-getopt_long.h
@@ -1,5 +1,5 @@
/* Test of command line argument processing.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-gettimeofday.c b/gettext-tools/gnulib-tests/test-gettimeofday.c
index 3b15f12..7a44d71 100644
--- a/gettext-tools/gnulib-tests/test-gettimeofday.c
+++ b/gettext-tools/gnulib-tests/test-gettimeofday.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2005, 2007, 2009-2015 Free Software Foundation, Inc.
+ * Copyright (C) 2005, 2007, 2009-2016 Free Software Foundation, Inc.
* Written by Jim Meyering.
*
* This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-iconv-h.c b/gettext-tools/gnulib-tests/test-iconv-h.c
index 5b688d9..fbb0548 100644
--- a/gettext-tools/gnulib-tests/test-iconv-h.c
+++ b/gettext-tools/gnulib-tests/test-iconv-h.c
@@ -1,5 +1,5 @@
/* Test of <iconv.h> substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-iconv.c b/gettext-tools/gnulib-tests/test-iconv.c
index ed715bd..3e4c4ff 100644
--- a/gettext-tools/gnulib-tests/test-iconv.c
+++ b/gettext-tools/gnulib-tests/test-iconv.c
@@ -1,5 +1,5 @@
/* Test of character set conversion.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-ignore-value.c b/gettext-tools/gnulib-tests/test-ignore-value.c
index fc98860..7c4b2de 100644
--- a/gettext-tools/gnulib-tests/test-ignore-value.c
+++ b/gettext-tools/gnulib-tests/test-ignore-value.c
@@ -1,6 +1,6 @@
/* Test the "ignore-value" module.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-init.sh b/gettext-tools/gnulib-tests/test-init.sh
index 0875a75..1dd05f4 100755
--- a/gettext-tools/gnulib-tests/test-init.sh
+++ b/gettext-tools/gnulib-tests/test-init.sh
@@ -1,6 +1,6 @@
#!/bin/sh
# Unit tests for init.sh
-# Copyright (C) 2011-2015 Free Software Foundation, Inc.
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
# This file is part of the GNUlib Library.
#
# This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-intprops.c b/gettext-tools/gnulib-tests/test-intprops.c
index 82dc9bf..51fe096 100644
--- a/gettext-tools/gnulib-tests/test-intprops.c
+++ b/gettext-tools/gnulib-tests/test-intprops.c
@@ -1,5 +1,5 @@
/* Test intprops.h.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -94,12 +94,8 @@ main (void)
ASSERT (TYPE_SIGNED (double));
ASSERT (TYPE_SIGNED (long double));
- /* Integer representation. */
- VERIFY (INT_MIN + INT_MAX < 0
- ? (TYPE_TWOS_COMPLEMENT (int)
- && ! TYPE_ONES_COMPLEMENT (int) && ! TYPE_SIGNED_MAGNITUDE (int))
- : (! TYPE_TWOS_COMPLEMENT (int)
- && (TYPE_ONES_COMPLEMENT (int) || TYPE_SIGNED_MAGNITUDE (int))));
+ /* Integer representation. Check that it is two's complement. */
+ VERIFY (INT_MIN + INT_MAX < 0);
/* TYPE_MINIMUM, TYPE_MAXIMUM. */
VERIFY (TYPE_MINIMUM (char) == CHAR_MIN);
@@ -156,8 +152,7 @@ main (void)
{ \
t result; \
ASSERT (INT_##opname##_WRAPV (a, b, &result) == (v)); \
- ASSERT (result == ((v) ? (vres) : ((a) op (b))) \
- || ((v) && !TYPE_TWOS_COMPLEMENT (t))); \
+ ASSERT (result == ((v) ? (vres) : ((a) op (b)))); \
}
#define CHECK_UNOP(op, opname, a, t, v) \
VERIFY (INT_##opname##_RANGE_OVERFLOW (a, TYPE_MINIMUM (t), \
@@ -183,7 +178,7 @@ main (void)
CHECK_BINOP (-, SUBTRACT, UINT_MAX, 1u, unsigned int, false, UINT_MAX - 1u);
CHECK_BINOP (-, SUBTRACT, 0u, 1u, unsigned int, true, 0u - 1u);
- CHECK_UNOP (-, NEGATE, INT_MIN, int, TYPE_TWOS_COMPLEMENT (int));
+ CHECK_UNOP (-, NEGATE, INT_MIN, int, true);
CHECK_UNOP (-, NEGATE, 0, int, false);
CHECK_UNOP (-, NEGATE, INT_MAX, int, false);
CHECK_UNOP (-, NEGATE, 0u, unsigned int, false);
@@ -230,8 +225,7 @@ main (void)
{ \
t result; \
ASSERT (INT_ADD_WRAPV (a, b, &result) == (v)); \
- ASSERT (result == ((v) ? (vres) : ((a) + (b))) \
- || ((v) && !TYPE_TWOS_COMPLEMENT (t))); \
+ ASSERT (result == ((v) ? (vres) : ((a) + (b)))); \
}
CHECK_SSUM (-1, LONG_MIN, long int, true, LONG_MAX);
CHECK_SUM (-1, UINT_MAX, unsigned int, false, DONTCARE);
@@ -259,8 +253,7 @@ main (void)
{ \
t result; \
ASSERT (INT_SUBTRACT_WRAPV (a, b, &result) == (v)); \
- ASSERT (result == ((v) ? (vres) : ((a) - (b))) \
- || ((v) && !TYPE_TWOS_COMPLEMENT (t))); \
+ ASSERT (result == ((v) ? (vres) : ((a) - (b)))); \
}
CHECK_DIFFERENCE (INT_MAX, 1u, unsigned int, UINT_MAX < INT_MAX - 1,
INT_MAX - 1u);
@@ -292,8 +285,7 @@ main (void)
{ \
t result; \
ASSERT (INT_MULTIPLY_WRAPV (a, b, &result) == (v)); \
- ASSERT (result == ((v) ? (vres) : ((a) * (b))) \
- || ((v) && !TYPE_TWOS_COMPLEMENT (t))); \
+ ASSERT (result == ((v) ? (vres) : ((a) * (b)))); \
}
CHECK_PRODUCT (-1, 1u, unsigned int, true, -1 * 1u);
CHECK_SPRODUCT (-1, INT_MIN, int, INT_NEGATE_OVERFLOW (INT_MIN), INT_MIN);
@@ -351,8 +343,7 @@ main (void)
#define CHECK_QUOTIENT(a, b, v) VERIFY (INT_DIVIDE_OVERFLOW (a, b) == (v))
- CHECK_QUOTIENT (INT_MIN, -1L,
- TYPE_TWOS_COMPLEMENT (long int) && INT_MIN == LONG_MIN);
+ CHECK_QUOTIENT (INT_MIN, -1L, INT_MIN == LONG_MIN);
CHECK_QUOTIENT (INT_MIN, UINT_MAX, false);
CHECK_QUOTIENT (INTMAX_MIN, UINTMAX_MAX, false);
CHECK_QUOTIENT (INTMAX_MIN, UINT_MAX, false);
@@ -365,8 +356,7 @@ main (void)
#define CHECK_REMAINDER(a, b, v) VERIFY (INT_REMAINDER_OVERFLOW (a, b) == (v))
- CHECK_REMAINDER (INT_MIN, -1L,
- TYPE_TWOS_COMPLEMENT (long int) && INT_MIN == LONG_MIN);
+ CHECK_REMAINDER (INT_MIN, -1L, INT_MIN == LONG_MIN);
CHECK_REMAINDER (-1, UINT_MAX, true);
CHECK_REMAINDER ((intmax_t) -1, UINTMAX_MAX, true);
CHECK_REMAINDER (INTMAX_MIN, UINT_MAX,
diff --git a/gettext-tools/gnulib-tests/test-inttypes.c b/gettext-tools/gnulib-tests/test-inttypes.c
index 7fa18b2..9a3193c 100644
--- a/gettext-tools/gnulib-tests/test-inttypes.c
+++ b/gettext-tools/gnulib-tests/test-inttypes.c
@@ -1,5 +1,5 @@
/* Test of <inttypes.h> substitute.
- Copyright (C) 2006-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-isinf.c b/gettext-tools/gnulib-tests/test-isinf.c
index d56feb4..1a29559 100644
--- a/gettext-tools/gnulib-tests/test-isinf.c
+++ b/gettext-tools/gnulib-tests/test-isinf.c
@@ -1,5 +1,5 @@
/* Test of isinf() substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-isnan.c b/gettext-tools/gnulib-tests/test-isnan.c
index bb4c940..10e8365 100644
--- a/gettext-tools/gnulib-tests/test-isnan.c
+++ b/gettext-tools/gnulib-tests/test-isnan.c
@@ -1,5 +1,5 @@
/* Test of isnand() substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-isnand-nolibm.c b/gettext-tools/gnulib-tests/test-isnand-nolibm.c
index 984d184..fd3bbaf 100644
--- a/gettext-tools/gnulib-tests/test-isnand-nolibm.c
+++ b/gettext-tools/gnulib-tests/test-isnand-nolibm.c
@@ -1,5 +1,5 @@
/* Test of isnand() substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-isnand.c b/gettext-tools/gnulib-tests/test-isnand.c
index 175bdbe..59ec52b 100644
--- a/gettext-tools/gnulib-tests/test-isnand.c
+++ b/gettext-tools/gnulib-tests/test-isnand.c
@@ -1,5 +1,5 @@
/* Test of isnand() substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-isnand.h b/gettext-tools/gnulib-tests/test-isnand.h
index 06fc183..8bc4139 100644
--- a/gettext-tools/gnulib-tests/test-isnand.h
+++ b/gettext-tools/gnulib-tests/test-isnand.h
@@ -1,5 +1,5 @@
/* Test of isnand() substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-isnanf-nolibm.c b/gettext-tools/gnulib-tests/test-isnanf-nolibm.c
index 7f70eb5..42f5b10 100644
--- a/gettext-tools/gnulib-tests/test-isnanf-nolibm.c
+++ b/gettext-tools/gnulib-tests/test-isnanf-nolibm.c
@@ -1,5 +1,5 @@
/* Test of isnanf() substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-isnanf.c b/gettext-tools/gnulib-tests/test-isnanf.c
index 9d67270..1e67658 100644
--- a/gettext-tools/gnulib-tests/test-isnanf.c
+++ b/gettext-tools/gnulib-tests/test-isnanf.c
@@ -1,5 +1,5 @@
/* Test of isnanf() substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-isnanf.h b/gettext-tools/gnulib-tests/test-isnanf.h
index cf51f12..abb992d 100644
--- a/gettext-tools/gnulib-tests/test-isnanf.h
+++ b/gettext-tools/gnulib-tests/test-isnanf.h
@@ -1,5 +1,5 @@
/* Test of isnanf() substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-isnanl-nolibm.c b/gettext-tools/gnulib-tests/test-isnanl-nolibm.c
index 63ea5a9..e7bad11 100644
--- a/gettext-tools/gnulib-tests/test-isnanl-nolibm.c
+++ b/gettext-tools/gnulib-tests/test-isnanl-nolibm.c
@@ -1,5 +1,5 @@
/* Test of isnanl() substitute.
- Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-isnanl.c b/gettext-tools/gnulib-tests/test-isnanl.c
index f3fcbd3..e4b815a 100644
--- a/gettext-tools/gnulib-tests/test-isnanl.c
+++ b/gettext-tools/gnulib-tests/test-isnanl.c
@@ -1,5 +1,5 @@
/* Test of isnanl() substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-isnanl.h b/gettext-tools/gnulib-tests/test-isnanl.h
index 2e65afa..25985e7 100644
--- a/gettext-tools/gnulib-tests/test-isnanl.h
+++ b/gettext-tools/gnulib-tests/test-isnanl.h
@@ -1,5 +1,5 @@
/* Test of isnanl() substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-iswblank.c b/gettext-tools/gnulib-tests/test-iswblank.c
index f1fbe41..175718f 100644
--- a/gettext-tools/gnulib-tests/test-iswblank.c
+++ b/gettext-tools/gnulib-tests/test-iswblank.c
@@ -1,5 +1,5 @@
/* Test of iswblank() function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-langinfo.c b/gettext-tools/gnulib-tests/test-langinfo.c
index b038ca3..30b0007 100644
--- a/gettext-tools/gnulib-tests/test-langinfo.c
+++ b/gettext-tools/gnulib-tests/test-langinfo.c
@@ -1,5 +1,5 @@
/* Test of <langinfo.h> substitute.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-linkedhash_list.c b/gettext-tools/gnulib-tests/test-linkedhash_list.c
index be5b166..946df5d 100644
--- a/gettext-tools/gnulib-tests/test-linkedhash_list.c
+++ b/gettext-tools/gnulib-tests/test-linkedhash_list.c
@@ -1,5 +1,5 @@
/* Test of sequential list data type implementation.
- Copyright (C) 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-locale.c b/gettext-tools/gnulib-tests/test-locale.c
index 5383cff..c1811af 100644
--- a/gettext-tools/gnulib-tests/test-locale.c
+++ b/gettext-tools/gnulib-tests/test-locale.c
@@ -1,5 +1,5 @@
/* Test of <locale.h> substitute.
- Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-localename.c b/gettext-tools/gnulib-tests/test-localename.c
index b5dd742..be8fcaf 100644
--- a/gettext-tools/gnulib-tests/test-localename.c
+++ b/gettext-tools/gnulib-tests/test-localename.c
@@ -1,5 +1,5 @@
/* Test of gl_locale_name function and its variants.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -183,6 +183,8 @@ test_locale_name (void)
ASSERT (strcmp (name, "fr_FR.UTF-8") == 0);
name = gl_locale_name (LC_MESSAGES, "LC_MESSAGES");
ASSERT (strcmp (name, "fr_FR.UTF-8") == 0);
+ uselocale (LC_GLOBAL_LOCALE);
+ freelocale (locale);
}
}
@@ -194,11 +196,13 @@ test_locale_name (void)
for (i = 0; i < SIZEOF (categories); i++)
{
int category_mask = categories[i].mask;
- locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL);
- if (locale != NULL)
+ locale_t loc = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL);
+ if (loc != NULL)
{
- locale = newlocale (category_mask, "de_DE.UTF-8", locale);
- if (locale != NULL)
+ locale_t locale = newlocale (category_mask, "de_DE.UTF-8", loc);
+ if (locale == NULL)
+ freelocale (loc);
+ else
{
unsigned int j;
@@ -212,6 +216,8 @@ test_locale_name (void)
else
ASSERT (strcmp (name_j, "fr_FR.UTF-8") == 0);
}
+ uselocale (LC_GLOBAL_LOCALE);
+ freelocale (locale);
}
}
}
@@ -245,6 +251,8 @@ test_locale_name_thread (void)
ASSERT (strcmp (name, "fr_FR.UTF-8") == 0);
name = gl_locale_name_thread (LC_MESSAGES, "LC_MESSAGES");
ASSERT (strcmp (name, "fr_FR.UTF-8") == 0);
+ uselocale (LC_GLOBAL_LOCALE);
+ freelocale (locale);
}
}
@@ -256,11 +264,13 @@ test_locale_name_thread (void)
for (i = 0; i < SIZEOF (categories); i++)
{
int category_mask = categories[i].mask;
- locale_t locale = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL);
- if (locale != NULL)
+ locale_t loc = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", NULL);
+ if (loc != NULL)
{
- locale = newlocale (category_mask, "de_DE.UTF-8", locale);
- if (locale != NULL)
+ locale_t locale = newlocale (category_mask, "de_DE.UTF-8", loc);
+ if (locale == NULL)
+ freelocale (loc);
+ else
{
unsigned int j;
@@ -275,6 +285,8 @@ test_locale_name_thread (void)
else
ASSERT (strcmp (name_j, "fr_FR.UTF-8") == 0);
}
+ uselocale (LC_GLOBAL_LOCALE);
+ freelocale (locale);
}
}
}
@@ -444,6 +456,7 @@ test_locale_name_thread (void)
ASSERT (strcmp (unsaved_names[j][i], name) == 0);
}
uselocale (LC_GLOBAL_LOCALE);
+ freelocale (locale);
}
}
/* Verify the unsaved_names are still valid. */
@@ -453,7 +466,10 @@ test_locale_name_thread (void)
unsigned int i;
for (i = 0; i < SIZEOF (categories); i++)
- ASSERT (strcmp (unsaved_names[j][i], saved_names[j][i]) == 0);
+ {
+ ASSERT (strcmp (unsaved_names[j][i], saved_names[j][i]) == 0);
+ free (saved_names[j][i]);
+ }
}
}
#else
@@ -590,6 +606,8 @@ test_locale_name_posix (void)
uselocale (locale);
name = gl_locale_name_posix (LC_MESSAGES, "LC_MESSAGES");
ASSERT (strcmp (name, "C") == 0);
+ uselocale (LC_GLOBAL_LOCALE);
+ freelocale (locale);
}
}
#endif
@@ -702,6 +720,8 @@ test_locale_name_environ (void)
uselocale (locale);
name = gl_locale_name_environ (LC_MESSAGES, "LC_MESSAGES");
ASSERT (strcmp (name, "C") == 0);
+ uselocale (LC_GLOBAL_LOCALE);
+ freelocale (locale);
}
}
#endif
@@ -729,6 +749,8 @@ test_locale_name_default (void)
{
uselocale (locale);
ASSERT (strcmp (gl_locale_name_default (), name) == 0);
+ uselocale (LC_GLOBAL_LOCALE);
+ freelocale (locale);
}
}
#endif
diff --git a/gettext-tools/gnulib-tests/test-lock.c b/gettext-tools/gnulib-tests/test-lock.c
index a992f64..cb734b4 100644
--- a/gettext-tools/gnulib-tests/test-lock.c
+++ b/gettext-tools/gnulib-tests/test-lock.c
@@ -1,5 +1,5 @@
/* Test of locking in multithreaded situations.
- Copyright (C) 2005, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-log10.c b/gettext-tools/gnulib-tests/test-log10.c
index d939151..5cf21c5 100644
--- a/gettext-tools/gnulib-tests/test-log10.c
+++ b/gettext-tools/gnulib-tests/test-log10.c
@@ -1,5 +1,5 @@
/* Test of log10() function.
- Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-log10.h b/gettext-tools/gnulib-tests/test-log10.h
index cd51640..9854418 100644
--- a/gettext-tools/gnulib-tests/test-log10.h
+++ b/gettext-tools/gnulib-tests/test-log10.h
@@ -1,5 +1,5 @@
/* Test of log10*() function family.
- Copyright (C) 2012-2015 Free Software Foundation, Inc.
+ Copyright (C) 2012-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-lseek.c b/gettext-tools/gnulib-tests/test-lseek.c
index c5e9188..f748435 100644
--- a/gettext-tools/gnulib-tests/test-lseek.c
+++ b/gettext-tools/gnulib-tests/test-lseek.c
@@ -1,5 +1,5 @@
/* Test of lseek() function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-lstat.c b/gettext-tools/gnulib-tests/test-lstat.c
index 0e7597e..86ff465 100644
--- a/gettext-tools/gnulib-tests/test-lstat.c
+++ b/gettext-tools/gnulib-tests/test-lstat.c
@@ -1,5 +1,5 @@
/* Test of lstat() function.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-lstat.h b/gettext-tools/gnulib-tests/test-lstat.h
index d5ba7a8..4eb9036 100644
--- a/gettext-tools/gnulib-tests/test-lstat.h
+++ b/gettext-tools/gnulib-tests/test-lstat.h
@@ -1,5 +1,5 @@
/* Test of lstat() function.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-malloca.c b/gettext-tools/gnulib-tests/test-malloca.c
index 717ede0..e9ab83d 100644
--- a/gettext-tools/gnulib-tests/test-malloca.c
+++ b/gettext-tools/gnulib-tests/test-malloca.c
@@ -1,5 +1,5 @@
/* Test of safe automatic memory allocation.
- Copyright (C) 2005, 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-math.c b/gettext-tools/gnulib-tests/test-math.c
index 7ac8b9a..de73b31 100644
--- a/gettext-tools/gnulib-tests/test-math.c
+++ b/gettext-tools/gnulib-tests/test-math.c
@@ -1,5 +1,5 @@
/* Test of <math.h> substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-mbrtowc-w32.c b/gettext-tools/gnulib-tests/test-mbrtowc-w32.c
index efb1ddd..f637330 100644
--- a/gettext-tools/gnulib-tests/test-mbrtowc-w32.c
+++ b/gettext-tools/gnulib-tests/test-mbrtowc-w32.c
@@ -1,5 +1,5 @@
/* Test of conversion of multibyte character to wide character.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-mbrtowc.c b/gettext-tools/gnulib-tests/test-mbrtowc.c
index d24b93e..f7fed6a 100644
--- a/gettext-tools/gnulib-tests/test-mbrtowc.c
+++ b/gettext-tools/gnulib-tests/test-mbrtowc.c
@@ -1,5 +1,5 @@
/* Test of conversion of multibyte character to wide character.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -72,6 +72,10 @@ main (int argc, char *argv[])
for (c = 0; c < 0x100; c++)
switch (c)
{
+ default:
+ if (! (c && 1 < argc && argv[1][0] == '5'))
+ break;
+ /* Fall through. */
case '\t': case '\v': case '\f':
case ' ': case '!': case '"': case '#': case '%':
case '&': case '\'': case '(': case ')': case '*':
@@ -93,7 +97,8 @@ main (int argc, char *argv[])
case 'p': case 'q': case 'r': case 's': case 't':
case 'u': case 'v': case 'w': case 'x': case 'y':
case 'z': case '{': case '|': case '}': case '~':
- /* c is in the ISO C "basic character set". */
+ /* c is in the ISO C "basic character set", or argv[1] starts
+ with '5' so we are testing all nonnull bytes. */
buf[0] = c;
wc = (wchar_t) 0xBADFACE;
ret = mbrtowc (&wc, buf, 1, &state);
@@ -334,6 +339,10 @@ main (int argc, char *argv[])
ASSERT (mbsinit (&state));
}
return 0;
+
+ case '5':
+ /* C locale; tested above. */
+ return 0;
}
return 1;
diff --git a/gettext-tools/gnulib-tests/test-mbrtowc5.sh b/gettext-tools/gnulib-tests/test-mbrtowc5.sh
new file mode 100755
index 0000000..c10b228
--- /dev/null
+++ b/gettext-tools/gnulib-tests/test-mbrtowc5.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Test whether the POSIX locale has encoding errors.
+LC_ALL=C \
+./test-mbrtowc${EXEEXT} 5 || exit
+LC_ALL=POSIX \
+./test-mbrtowc${EXEEXT} 5
diff --git a/gettext-tools/gnulib-tests/test-mbsinit.c b/gettext-tools/gnulib-tests/test-mbsinit.c
index 98db1f1..8cd1c4d 100644
--- a/gettext-tools/gnulib-tests/test-mbsinit.c
+++ b/gettext-tools/gnulib-tests/test-mbsinit.c
@@ -1,5 +1,5 @@
/* Test of test for initial conversion state.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-mbsrtowcs.c b/gettext-tools/gnulib-tests/test-mbsrtowcs.c
index cb394f5..aef88a3 100644
--- a/gettext-tools/gnulib-tests/test-mbsrtowcs.c
+++ b/gettext-tools/gnulib-tests/test-mbsrtowcs.c
@@ -1,5 +1,5 @@
/* Test of conversion of string to wide string.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-mbsstr1.c b/gettext-tools/gnulib-tests/test-mbsstr1.c
index b00d533..8b1ac0a 100644
--- a/gettext-tools/gnulib-tests/test-mbsstr1.c
+++ b/gettext-tools/gnulib-tests/test-mbsstr1.c
@@ -1,5 +1,5 @@
/* Test of searching in a string.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-mbsstr2.c b/gettext-tools/gnulib-tests/test-mbsstr2.c
index 6a80ebb..919e47c 100644
--- a/gettext-tools/gnulib-tests/test-mbsstr2.c
+++ b/gettext-tools/gnulib-tests/test-mbsstr2.c
@@ -1,5 +1,5 @@
/* Test of searching in a string.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-mbsstr3.c b/gettext-tools/gnulib-tests/test-mbsstr3.c
index 4f56bf3..622f0ec 100644
--- a/gettext-tools/gnulib-tests/test-mbsstr3.c
+++ b/gettext-tools/gnulib-tests/test-mbsstr3.c
@@ -1,5 +1,5 @@
/* Test of searching in a string.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-memchr.c b/gettext-tools/gnulib-tests/test-memchr.c
index bc1acf9..1526ed2 100644
--- a/gettext-tools/gnulib-tests/test-memchr.c
+++ b/gettext-tools/gnulib-tests/test-memchr.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ * Copyright (C) 2008-2016 Free Software Foundation, Inc.
* Written by Eric Blake and Bruno Haible
*
* This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-open.c b/gettext-tools/gnulib-tests/test-open.c
index d169e22..d9e2e27 100644
--- a/gettext-tools/gnulib-tests/test-open.c
+++ b/gettext-tools/gnulib-tests/test-open.c
@@ -1,5 +1,5 @@
/* Test of opening a file descriptor.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-open.h b/gettext-tools/gnulib-tests/test-open.h
index 2fbcd17..faaff0f 100644
--- a/gettext-tools/gnulib-tests/test-open.h
+++ b/gettext-tools/gnulib-tests/test-open.h
@@ -1,5 +1,5 @@
/* Test of opening a file descriptor.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-pathmax.c b/gettext-tools/gnulib-tests/test-pathmax.c
index 14eb1ee..ac4a393 100644
--- a/gettext-tools/gnulib-tests/test-pathmax.c
+++ b/gettext-tools/gnulib-tests/test-pathmax.c
@@ -1,5 +1,5 @@
/* Test of "pathmax.h".
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-pipe-filter-ii1.c b/gettext-tools/gnulib-tests/test-pipe-filter-ii1.c
index f7ddfc3..5096673 100644
--- a/gettext-tools/gnulib-tests/test-pipe-filter-ii1.c
+++ b/gettext-tools/gnulib-tests/test-pipe-filter-ii1.c
@@ -1,5 +1,5 @@
/* Test of filtering of data through a subprocess.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2009.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-pipe-filter-ii2-child.c b/gettext-tools/gnulib-tests/test-pipe-filter-ii2-child.c
index 89e1011..68c5c31 100644
--- a/gettext-tools/gnulib-tests/test-pipe-filter-ii2-child.c
+++ b/gettext-tools/gnulib-tests/test-pipe-filter-ii2-child.c
@@ -1,6 +1,6 @@
/* Child program invoked by test-pipe-filter-ii2-main.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
Written by Paolo Bonzini <bonzini@gnu.org>, 2009.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-pipe-filter-ii2-main.c b/gettext-tools/gnulib-tests/test-pipe-filter-ii2-main.c
index e23b13f..60a3752 100644
--- a/gettext-tools/gnulib-tests/test-pipe-filter-ii2-main.c
+++ b/gettext-tools/gnulib-tests/test-pipe-filter-ii2-main.c
@@ -1,6 +1,6 @@
/* Test harness for pipe-filter-ii.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
Written by Paolo Bonzini <bonzini@gnu.org>, 2009.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-pipe-filter-ii2.sh b/gettext-tools/gnulib-tests/test-pipe-filter-ii2.sh
index 81b2188..0ec8168 100755
--- a/gettext-tools/gnulib-tests/test-pipe-filter-ii2.sh
+++ b/gettext-tools/gnulib-tests/test-pipe-filter-ii2.sh
@@ -2,7 +2,7 @@
# pipe-filter test driver.
#
-# Copyright (C) 2009-2015 Free Software Foundation, Inc.
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
# Written by Paolo Bonzini <bonzini@gnu.org>, 2009.
#
# This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-pipe2.c b/gettext-tools/gnulib-tests/test-pipe2.c
index 88b9bf1..9bbeb25 100644
--- a/gettext-tools/gnulib-tests/test-pipe2.c
+++ b/gettext-tools/gnulib-tests/test-pipe2.c
@@ -1,5 +1,5 @@
/* Test of pipe2.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-posix_spawn1.c b/gettext-tools/gnulib-tests/test-posix_spawn1.c
index c72ae44..ddf5b99 100644
--- a/gettext-tools/gnulib-tests/test-posix_spawn1.c
+++ b/gettext-tools/gnulib-tests/test-posix_spawn1.c
@@ -1,5 +1,5 @@
/* Test of posix_spawn() function.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-posix_spawn2.c b/gettext-tools/gnulib-tests/test-posix_spawn2.c
index 1d76014..041e0bb 100644
--- a/gettext-tools/gnulib-tests/test-posix_spawn2.c
+++ b/gettext-tools/gnulib-tests/test-posix_spawn2.c
@@ -1,5 +1,5 @@
/* Test of posix_spawn() function.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-posix_spawn_file_actions_addclose.c b/gettext-tools/gnulib-tests/test-posix_spawn_file_actions_addclose.c
index 1e4c986..9c613f9 100644
--- a/gettext-tools/gnulib-tests/test-posix_spawn_file_actions_addclose.c
+++ b/gettext-tools/gnulib-tests/test-posix_spawn_file_actions_addclose.c
@@ -1,5 +1,5 @@
/* Test posix_spawn_file_actions_addclose() function.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-posix_spawn_file_actions_adddup2.c b/gettext-tools/gnulib-tests/test-posix_spawn_file_actions_adddup2.c
index 9526e2d..61ca4b3 100644
--- a/gettext-tools/gnulib-tests/test-posix_spawn_file_actions_adddup2.c
+++ b/gettext-tools/gnulib-tests/test-posix_spawn_file_actions_adddup2.c
@@ -1,5 +1,5 @@
/* Test posix_spawn_file_actions_adddup2() function.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-posix_spawn_file_actions_addopen.c b/gettext-tools/gnulib-tests/test-posix_spawn_file_actions_addopen.c
index cb5c8c4..b387dbd 100644
--- a/gettext-tools/gnulib-tests/test-posix_spawn_file_actions_addopen.c
+++ b/gettext-tools/gnulib-tests/test-posix_spawn_file_actions_addopen.c
@@ -1,5 +1,5 @@
/* Test posix_spawn_file_actions_addopen() function.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-pow.c b/gettext-tools/gnulib-tests/test-pow.c
index ed51502..6a40177 100644
--- a/gettext-tools/gnulib-tests/test-pow.c
+++ b/gettext-tools/gnulib-tests/test-pow.c
@@ -1,5 +1,5 @@
/* Test of pow() function.
- Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-quotearg-simple.c b/gettext-tools/gnulib-tests/test-quotearg-simple.c
index 516e890..6bb4b35 100644
--- a/gettext-tools/gnulib-tests/test-quotearg-simple.c
+++ b/gettext-tools/gnulib-tests/test-quotearg-simple.c
@@ -1,5 +1,5 @@
/* Test of quotearg family of functions.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-quotearg.h b/gettext-tools/gnulib-tests/test-quotearg.h
index e1bb659..7eee6b5 100644
--- a/gettext-tools/gnulib-tests/test-quotearg.h
+++ b/gettext-tools/gnulib-tests/test-quotearg.h
@@ -1,5 +1,5 @@
/* Test of quotearg family of functions.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-raise.c b/gettext-tools/gnulib-tests/test-raise.c
index 7456a90..b793e97 100644
--- a/gettext-tools/gnulib-tests/test-raise.c
+++ b/gettext-tools/gnulib-tests/test-raise.c
@@ -1,5 +1,5 @@
/* Test raising a signal.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-rawmemchr.c b/gettext-tools/gnulib-tests/test-rawmemchr.c
index c9022d3..4f4ec7b 100644
--- a/gettext-tools/gnulib-tests/test-rawmemchr.c
+++ b/gettext-tools/gnulib-tests/test-rawmemchr.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ * Copyright (C) 2008-2016 Free Software Foundation, Inc.
* Written by Eric Blake and Bruno Haible
*
* This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-read-file.c b/gettext-tools/gnulib-tests/test-read-file.c
index f8b160f..ab13f14 100644
--- a/gettext-tools/gnulib-tests/test-read-file.c
+++ b/gettext-tools/gnulib-tests/test-read-file.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2006-2007, 2010-2015 Free Software Foundation, Inc.
+ * Copyright (C) 2006-2007, 2010-2016 Free Software Foundation, Inc.
* Written by Simon Josefsson
*
* This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-read.c b/gettext-tools/gnulib-tests/test-read.c
index 892a617..8b36808 100644
--- a/gettext-tools/gnulib-tests/test-read.c
+++ b/gettext-tools/gnulib-tests/test-read.c
@@ -1,5 +1,5 @@
/* Test the read() function.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-readlink.c b/gettext-tools/gnulib-tests/test-readlink.c
index 4240108..fdff6e1 100644
--- a/gettext-tools/gnulib-tests/test-readlink.c
+++ b/gettext-tools/gnulib-tests/test-readlink.c
@@ -1,5 +1,5 @@
/* Tests of readlink.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-readlink.h b/gettext-tools/gnulib-tests/test-readlink.h
index ad34c55..cba98f6 100644
--- a/gettext-tools/gnulib-tests/test-readlink.h
+++ b/gettext-tools/gnulib-tests/test-readlink.h
@@ -1,5 +1,5 @@
/* Tests of readlink.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-rmdir.c b/gettext-tools/gnulib-tests/test-rmdir.c
index 52cfa42..192525c 100644
--- a/gettext-tools/gnulib-tests/test-rmdir.c
+++ b/gettext-tools/gnulib-tests/test-rmdir.c
@@ -1,5 +1,5 @@
/* Tests of rmdir.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-rmdir.h b/gettext-tools/gnulib-tests/test-rmdir.h
index 9c83a10..5cccd05 100644
--- a/gettext-tools/gnulib-tests/test-rmdir.h
+++ b/gettext-tools/gnulib-tests/test-rmdir.h
@@ -1,5 +1,5 @@
/* Tests of rmdir.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-sameacls.c b/gettext-tools/gnulib-tests/test-sameacls.c
index bea6d3e..4f78e09 100644
--- a/gettext-tools/gnulib-tests/test-sameacls.c
+++ b/gettext-tools/gnulib-tests/test-sameacls.c
@@ -1,5 +1,5 @@
/* Test whether two files have the same ACLs.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-sched.c b/gettext-tools/gnulib-tests/test-sched.c
index d6f5752..52e0a8a 100644
--- a/gettext-tools/gnulib-tests/test-sched.c
+++ b/gettext-tools/gnulib-tests/test-sched.c
@@ -1,5 +1,5 @@
/* Test of <sched.h> substitute.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-set-mode-acl.c b/gettext-tools/gnulib-tests/test-set-mode-acl.c
index a282e25..028a09b 100644
--- a/gettext-tools/gnulib-tests/test-set-mode-acl.c
+++ b/gettext-tools/gnulib-tests/test-set-mode-acl.c
@@ -1,5 +1,5 @@
/* Test of setting an ACL equivalent to a mode.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-setenv.c b/gettext-tools/gnulib-tests/test-setenv.c
index a7ef488..519dc27 100644
--- a/gettext-tools/gnulib-tests/test-setenv.c
+++ b/gettext-tools/gnulib-tests/test-setenv.c
@@ -1,5 +1,5 @@
/* Tests of setenv.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-setlocale1.c b/gettext-tools/gnulib-tests/test-setlocale1.c
index 6e0ef9d..143c0d8 100644
--- a/gettext-tools/gnulib-tests/test-setlocale1.c
+++ b/gettext-tools/gnulib-tests/test-setlocale1.c
@@ -1,5 +1,5 @@
/* Test of setting the current locale.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -54,6 +54,8 @@ main (int argc, char *argv[])
/* Test that the two results are the same. */
ASSERT (strcmp (name1, name2) == 0);
+ free (name1);
+ free (name2);
return 0;
}
diff --git a/gettext-tools/gnulib-tests/test-setlocale2.c b/gettext-tools/gnulib-tests/test-setlocale2.c
index 1bd8a5c..52e65d8 100644
--- a/gettext-tools/gnulib-tests/test-setlocale2.c
+++ b/gettext-tools/gnulib-tests/test-setlocale2.c
@@ -1,5 +1,5 @@
/* Test of setting the current locale.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-sh-quote.c b/gettext-tools/gnulib-tests/test-sh-quote.c
index 1b36a84..a2633ba 100644
--- a/gettext-tools/gnulib-tests/test-sh-quote.c
+++ b/gettext-tools/gnulib-tests/test-sh-quote.c
@@ -1,5 +1,5 @@
/* Test of sh-quote module.
- Copyright (C) 2012-2015 Free Software Foundation, Inc.
+ Copyright (C) 2012-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-sigaction.c b/gettext-tools/gnulib-tests/test-sigaction.c
index ec0f051..27c1ecc 100644
--- a/gettext-tools/gnulib-tests/test-sigaction.c
+++ b/gettext-tools/gnulib-tests/test-sigaction.c
@@ -1,5 +1,5 @@
/* Test of sigaction() function.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-signal-h.c b/gettext-tools/gnulib-tests/test-signal-h.c
index 836e1c8..b050839 100644
--- a/gettext-tools/gnulib-tests/test-signal-h.c
+++ b/gettext-tools/gnulib-tests/test-signal-h.c
@@ -1,5 +1,5 @@
/* Test of <signal.h> substitute.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-signbit.c b/gettext-tools/gnulib-tests/test-signbit.c
index 80e9a08..878b7eb 100644
--- a/gettext-tools/gnulib-tests/test-signbit.c
+++ b/gettext-tools/gnulib-tests/test-signbit.c
@@ -1,5 +1,5 @@
/* Test of signbit() substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-sigpipe.c b/gettext-tools/gnulib-tests/test-sigpipe.c
index d5e7e9c..00707aa 100644
--- a/gettext-tools/gnulib-tests/test-sigpipe.c
+++ b/gettext-tools/gnulib-tests/test-sigpipe.c
@@ -1,5 +1,5 @@
/* Test of SIGPIPE handling.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-sigprocmask.c b/gettext-tools/gnulib-tests/test-sigprocmask.c
index c88e180..e759bf1 100644
--- a/gettext-tools/gnulib-tests/test-sigprocmask.c
+++ b/gettext-tools/gnulib-tests/test-sigprocmask.c
@@ -1,5 +1,5 @@
/* Test of sigprocmask.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-sleep.c b/gettext-tools/gnulib-tests/test-sleep.c
index fba2f46..64f681e 100644
--- a/gettext-tools/gnulib-tests/test-sleep.c
+++ b/gettext-tools/gnulib-tests/test-sleep.c
@@ -1,5 +1,5 @@
/* Test of sleep() function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-snprintf.c b/gettext-tools/gnulib-tests/test-snprintf.c
index c14a2c1..9041e4a 100644
--- a/gettext-tools/gnulib-tests/test-snprintf.c
+++ b/gettext-tools/gnulib-tests/test-snprintf.c
@@ -1,5 +1,5 @@
/* Test of snprintf() function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-spawn-pipe-child.c b/gettext-tools/gnulib-tests/test-spawn-pipe-child.c
index 2d354c2..5a8652b 100644
--- a/gettext-tools/gnulib-tests/test-spawn-pipe-child.c
+++ b/gettext-tools/gnulib-tests/test-spawn-pipe-child.c
@@ -1,5 +1,5 @@
/* Child program invoked by test-spawn-pipe-main.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-spawn-pipe-main.c b/gettext-tools/gnulib-tests/test-spawn-pipe-main.c
index f0d94d7..2275238 100644
--- a/gettext-tools/gnulib-tests/test-spawn-pipe-main.c
+++ b/gettext-tools/gnulib-tests/test-spawn-pipe-main.c
@@ -1,5 +1,5 @@
/* Test of create_pipe_bidi/wait_subprocess.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-spawn.c b/gettext-tools/gnulib-tests/test-spawn.c
index 080ad2f..e33ac47 100644
--- a/gettext-tools/gnulib-tests/test-spawn.c
+++ b/gettext-tools/gnulib-tests/test-spawn.c
@@ -1,5 +1,5 @@
/* Test of <spawn.h> substitute.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-stat.c b/gettext-tools/gnulib-tests/test-stat.c
index c6af376..4510e59 100644
--- a/gettext-tools/gnulib-tests/test-stat.c
+++ b/gettext-tools/gnulib-tests/test-stat.c
@@ -1,5 +1,5 @@
/* Tests of stat.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -30,6 +30,7 @@ SIGNATURE_CHECK (stat, int, (char const *, struct stat *));
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
+#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/gettext-tools/gnulib-tests/test-stat.h b/gettext-tools/gnulib-tests/test-stat.h
index c37fe6d..4cf6c6d 100644
--- a/gettext-tools/gnulib-tests/test-stat.h
+++ b/gettext-tools/gnulib-tests/test-stat.h
@@ -1,5 +1,5 @@
/* Tests of stat.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -95,6 +95,7 @@ test_stat_func (int (*func) (char const *, struct stat *), bool print)
ASSERT (unlink (BASE "link2") == 0);
ASSERT (unlink (BASE "link3") == 0);
ASSERT (unlink (BASE "link4") == 0);
+ free (cwd);
return 0;
}
diff --git a/gettext-tools/gnulib-tests/test-stdalign.c b/gettext-tools/gnulib-tests/test-stdalign.c
index 68b9ef1..0f240c5 100644
--- a/gettext-tools/gnulib-tests/test-stdalign.c
+++ b/gettext-tools/gnulib-tests/test-stdalign.c
@@ -1,5 +1,5 @@
/* Test of <stdalign.h>.
- Copyright 2009-2015 Free Software Foundation, Inc.
+ Copyright 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-stdbool.c b/gettext-tools/gnulib-tests/test-stdbool.c
index 1da25d0..45dc837 100644
--- a/gettext-tools/gnulib-tests/test-stdbool.c
+++ b/gettext-tools/gnulib-tests/test-stdbool.c
@@ -1,5 +1,5 @@
/* Test of <stdbool.h> substitute.
- Copyright (C) 2002-2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002-2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-stddef.c b/gettext-tools/gnulib-tests/test-stddef.c
index aa6ae54..bfb72a0 100644
--- a/gettext-tools/gnulib-tests/test-stddef.c
+++ b/gettext-tools/gnulib-tests/test-stddef.c
@@ -1,5 +1,5 @@
/* Test of <stddef.h> substitute.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-stdint.c b/gettext-tools/gnulib-tests/test-stdint.c
index 8d54db2..7705fc7 100644
--- a/gettext-tools/gnulib-tests/test-stdint.c
+++ b/gettext-tools/gnulib-tests/test-stdint.c
@@ -1,5 +1,5 @@
/* Test of <stdint.h> substitute.
- Copyright (C) 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2006-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-stdio.c b/gettext-tools/gnulib-tests/test-stdio.c
index cbec2a6..6cde888 100644
--- a/gettext-tools/gnulib-tests/test-stdio.c
+++ b/gettext-tools/gnulib-tests/test-stdio.c
@@ -1,5 +1,5 @@
/* Test of <stdio.h> substitute.
- Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-stdlib.c b/gettext-tools/gnulib-tests/test-stdlib.c
index b2da7ec..a1fc0d8 100644
--- a/gettext-tools/gnulib-tests/test-stdlib.c
+++ b/gettext-tools/gnulib-tests/test-stdlib.c
@@ -1,5 +1,5 @@
/* Test of <stdlib.h> substitute.
- Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-strchrnul.c b/gettext-tools/gnulib-tests/test-strchrnul.c
index 8d7dcda..14e5ea6 100644
--- a/gettext-tools/gnulib-tests/test-strchrnul.c
+++ b/gettext-tools/gnulib-tests/test-strchrnul.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ * Copyright (C) 2008-2016 Free Software Foundation, Inc.
* Written by Eric Blake and Bruno Haible
*
* This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-strerror.c b/gettext-tools/gnulib-tests/test-strerror.c
index 755ffba..80ffe1c 100644
--- a/gettext-tools/gnulib-tests/test-strerror.c
+++ b/gettext-tools/gnulib-tests/test-strerror.c
@@ -1,5 +1,5 @@
/* Test of strerror() function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-striconv.c b/gettext-tools/gnulib-tests/test-striconv.c
index fc9b200..9b71b69 100644
--- a/gettext-tools/gnulib-tests/test-striconv.c
+++ b/gettext-tools/gnulib-tests/test-striconv.c
@@ -1,5 +1,5 @@
/* Test of character set conversion.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-striconveh.c b/gettext-tools/gnulib-tests/test-striconveh.c
index a4b48fb..de5e657 100644
--- a/gettext-tools/gnulib-tests/test-striconveh.c
+++ b/gettext-tools/gnulib-tests/test-striconveh.c
@@ -1,5 +1,5 @@
/* Test of character set conversion with error handling.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-striconveha.c b/gettext-tools/gnulib-tests/test-striconveha.c
index 19e4318..63c950f 100644
--- a/gettext-tools/gnulib-tests/test-striconveha.c
+++ b/gettext-tools/gnulib-tests/test-striconveha.c
@@ -1,5 +1,5 @@
/* Test of character set conversion with error handling and autodetection.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-string.c b/gettext-tools/gnulib-tests/test-string.c
index 647d3b9..f4c60f7 100644
--- a/gettext-tools/gnulib-tests/test-string.c
+++ b/gettext-tools/gnulib-tests/test-string.c
@@ -1,5 +1,5 @@
/* Test of <string.h> substitute.
- Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-strnlen.c b/gettext-tools/gnulib-tests/test-strnlen.c
index 19e41cf..ee5bd78 100644
--- a/gettext-tools/gnulib-tests/test-strnlen.c
+++ b/gettext-tools/gnulib-tests/test-strnlen.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ * Copyright (C) 2010-2016 Free Software Foundation, Inc.
* Written by Eric Blake
*
* This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-strstr.c b/gettext-tools/gnulib-tests/test-strstr.c
index 70ebf50..eaefb06 100644
--- a/gettext-tools/gnulib-tests/test-strstr.c
+++ b/gettext-tools/gnulib-tests/test-strstr.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004, 2007-2015 Free Software Foundation, Inc.
+ * Copyright (C) 2004, 2007-2016 Free Software Foundation, Inc.
* Written by Bruno Haible and Eric Blake
*
* This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-strtol.c b/gettext-tools/gnulib-tests/test-strtol.c
index 1820dd9..12d90d7 100644
--- a/gettext-tools/gnulib-tests/test-strtol.c
+++ b/gettext-tools/gnulib-tests/test-strtol.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ * Copyright (C) 2011-2016 Free Software Foundation, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-strtoul.c b/gettext-tools/gnulib-tests/test-strtoul.c
index 3bb1cbf..bbf53f7 100644
--- a/gettext-tools/gnulib-tests/test-strtoul.c
+++ b/gettext-tools/gnulib-tests/test-strtoul.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ * Copyright (C) 2011-2016 Free Software Foundation, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-symlink.c b/gettext-tools/gnulib-tests/test-symlink.c
index 7a63391..ad13b93 100644
--- a/gettext-tools/gnulib-tests/test-symlink.c
+++ b/gettext-tools/gnulib-tests/test-symlink.c
@@ -1,5 +1,5 @@
/* Tests of symlink.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-symlink.h b/gettext-tools/gnulib-tests/test-symlink.h
index 4dc741a..fc064e8 100644
--- a/gettext-tools/gnulib-tests/test-symlink.h
+++ b/gettext-tools/gnulib-tests/test-symlink.h
@@ -1,5 +1,5 @@
/* Tests of symlink.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-sys_select.c b/gettext-tools/gnulib-tests/test-sys_select.c
index e9b4b7c..39a878f 100644
--- a/gettext-tools/gnulib-tests/test-sys_select.c
+++ b/gettext-tools/gnulib-tests/test-sys_select.c
@@ -1,5 +1,5 @@
/* Test of <sys/select.h> substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-sys_stat.c b/gettext-tools/gnulib-tests/test-sys_stat.c
index e4194a1..8a3af94 100644
--- a/gettext-tools/gnulib-tests/test-sys_stat.c
+++ b/gettext-tools/gnulib-tests/test-sys_stat.c
@@ -1,5 +1,5 @@
/* Test of <sys/stat.h> substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-sys_time.c b/gettext-tools/gnulib-tests/test-sys_time.c
index 653ff46..44535b9 100644
--- a/gettext-tools/gnulib-tests/test-sys_time.c
+++ b/gettext-tools/gnulib-tests/test-sys_time.c
@@ -1,5 +1,5 @@
/* Test of <sys/time.h> substitute.
- Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-sys_types.c b/gettext-tools/gnulib-tests/test-sys_types.c
index 1ef3b90..7f8fb6d 100644
--- a/gettext-tools/gnulib-tests/test-sys_types.c
+++ b/gettext-tools/gnulib-tests/test-sys_types.c
@@ -1,5 +1,5 @@
/* Test of <sys/types.h> substitute.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-sys_wait.c b/gettext-tools/gnulib-tests/test-sys_wait.c
index 3382fdf..f814ff3 100644
--- a/gettext-tools/gnulib-tests/test-sys_wait.c
+++ b/gettext-tools/gnulib-tests/test-sys_wait.c
@@ -1,5 +1,5 @@
/* Test of <sys/wait.h> substitute.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-sys_wait.h b/gettext-tools/gnulib-tests/test-sys_wait.h
index e4a79b5..7389be4 100644
--- a/gettext-tools/gnulib-tests/test-sys_wait.h
+++ b/gettext-tools/gnulib-tests/test-sys_wait.h
@@ -1,5 +1,5 @@
/* Test of macros shared between <sys/wait.h> and <stdlib.h>.
- Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-thread_create.c b/gettext-tools/gnulib-tests/test-thread_create.c
index c6dbc7b..f6b7e56 100644
--- a/gettext-tools/gnulib-tests/test-thread_create.c
+++ b/gettext-tools/gnulib-tests/test-thread_create.c
@@ -1,5 +1,5 @@
/* Test of gl_thread_create () macro.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-thread_self.c b/gettext-tools/gnulib-tests/test-thread_self.c
index 1d2d05e..85c4185 100644
--- a/gettext-tools/gnulib-tests/test-thread_self.c
+++ b/gettext-tools/gnulib-tests/test-thread_self.c
@@ -1,5 +1,5 @@
/* Test of gl_thread_self () macro.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-time.c b/gettext-tools/gnulib-tests/test-time.c
index 25bdcf0..dec2b13 100644
--- a/gettext-tools/gnulib-tests/test-time.c
+++ b/gettext-tools/gnulib-tests/test-time.c
@@ -1,5 +1,5 @@
/* Test of <time.h> substitute.
- Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-tls.c b/gettext-tools/gnulib-tests/test-tls.c
index bee567e..36d5e06 100644
--- a/gettext-tools/gnulib-tests/test-tls.c
+++ b/gettext-tools/gnulib-tests/test-tls.c
@@ -1,5 +1,5 @@
/* Test of thread-local storage in multithreaded situations.
- Copyright (C) 2005, 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-unistd.c b/gettext-tools/gnulib-tests/test-unistd.c
index 930b5e2..463ef57 100644
--- a/gettext-tools/gnulib-tests/test-unistd.c
+++ b/gettext-tools/gnulib-tests/test-unistd.c
@@ -1,5 +1,5 @@
/* Test of <unistd.h> substitute.
- Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-unsetenv.c b/gettext-tools/gnulib-tests/test-unsetenv.c
index 235e185..fe4548d 100644
--- a/gettext-tools/gnulib-tests/test-unsetenv.c
+++ b/gettext-tools/gnulib-tests/test-unsetenv.c
@@ -1,5 +1,5 @@
/* Tests of unsetenv.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-vasnprintf-posix.c b/gettext-tools/gnulib-tests/test-vasnprintf-posix.c
index bf36f1f..eb292ea 100644
--- a/gettext-tools/gnulib-tests/test-vasnprintf-posix.c
+++ b/gettext-tools/gnulib-tests/test-vasnprintf-posix.c
@@ -1,5 +1,5 @@
/* Test of POSIX compatible vasnprintf() and asnprintf() functions.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-vasnprintf.c b/gettext-tools/gnulib-tests/test-vasnprintf.c
index 8ff5900..a75c004 100644
--- a/gettext-tools/gnulib-tests/test-vasnprintf.c
+++ b/gettext-tools/gnulib-tests/test-vasnprintf.c
@@ -1,5 +1,5 @@
/* Test of vasnprintf() and asnprintf() functions.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-vasprintf.c b/gettext-tools/gnulib-tests/test-vasprintf.c
index b304275..ebcbfc4 100644
--- a/gettext-tools/gnulib-tests/test-vasprintf.c
+++ b/gettext-tools/gnulib-tests/test-vasprintf.c
@@ -1,5 +1,5 @@
/* Test of vasprintf() and asprintf() functions.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-verify.c b/gettext-tools/gnulib-tests/test-verify.c
index 640dc42..d7ca053 100644
--- a/gettext-tools/gnulib-tests/test-verify.c
+++ b/gettext-tools/gnulib-tests/test-verify.c
@@ -1,6 +1,6 @@
/* Test the "verify" module.
- Copyright (C) 2005, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-vsnprintf.c b/gettext-tools/gnulib-tests/test-vsnprintf.c
index a37ace5..0a2ff02 100644
--- a/gettext-tools/gnulib-tests/test-vsnprintf.c
+++ b/gettext-tools/gnulib-tests/test-vsnprintf.c
@@ -1,5 +1,5 @@
/* Test of vsnprintf() function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-wchar.c b/gettext-tools/gnulib-tests/test-wchar.c
index e857ab5..e118048 100644
--- a/gettext-tools/gnulib-tests/test-wchar.c
+++ b/gettext-tools/gnulib-tests/test-wchar.c
@@ -1,5 +1,5 @@
/* Test of <wchar.h> substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-wcrtomb-w32.c b/gettext-tools/gnulib-tests/test-wcrtomb-w32.c
index d8bcf75..0570c73 100644
--- a/gettext-tools/gnulib-tests/test-wcrtomb-w32.c
+++ b/gettext-tools/gnulib-tests/test-wcrtomb-w32.c
@@ -1,5 +1,5 @@
/* Test of conversion of wide character to multibyte character.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-wcrtomb.c b/gettext-tools/gnulib-tests/test-wcrtomb.c
index 902a4e1..e1d2bb4 100644
--- a/gettext-tools/gnulib-tests/test-wcrtomb.c
+++ b/gettext-tools/gnulib-tests/test-wcrtomb.c
@@ -1,5 +1,5 @@
/* Test of conversion of wide character to multibyte character.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-wctype-h.c b/gettext-tools/gnulib-tests/test-wctype-h.c
index 7466e59..b401091 100644
--- a/gettext-tools/gnulib-tests/test-wctype-h.c
+++ b/gettext-tools/gnulib-tests/test-wctype-h.c
@@ -1,5 +1,5 @@
/* Test of <wctype.h> substitute.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-wcwidth.c b/gettext-tools/gnulib-tests/test-wcwidth.c
index 9fad785..5a0d853 100644
--- a/gettext-tools/gnulib-tests/test-wcwidth.c
+++ b/gettext-tools/gnulib-tests/test-wcwidth.c
@@ -1,5 +1,5 @@
/* Test of wcwidth() function.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-write.c b/gettext-tools/gnulib-tests/test-write.c
index 6c1ea0c..a9e6331 100644
--- a/gettext-tools/gnulib-tests/test-write.c
+++ b/gettext-tools/gnulib-tests/test-write.c
@@ -1,5 +1,5 @@
/* Test the write() function.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-xalloc-die.c b/gettext-tools/gnulib-tests/test-xalloc-die.c
index 16d8636..9329750 100644
--- a/gettext-tools/gnulib-tests/test-xalloc-die.c
+++ b/gettext-tools/gnulib-tests/test-xalloc-die.c
@@ -1,5 +1,5 @@
/* Test of xalloc_die() function.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/test-xalloc-die.sh b/gettext-tools/gnulib-tests/test-xalloc-die.sh
index 76cdecd..fba601f 100755
--- a/gettext-tools/gnulib-tests/test-xalloc-die.sh
+++ b/gettext-tools/gnulib-tests/test-xalloc-die.sh
@@ -1,6 +1,6 @@
#!/bin/sh
# Test suite for xalloc_die.
-# Copyright (C) 2009-2015 Free Software Foundation, Inc.
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
# This file is part of the GNUlib Library.
#
# This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/test-xmemdup0.c b/gettext-tools/gnulib-tests/test-xmemdup0.c
new file mode 100644
index 0000000..bbe94ca
--- /dev/null
+++ b/gettext-tools/gnulib-tests/test-xmemdup0.c
@@ -0,0 +1,81 @@
+/* Test of xmemdup0() function.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, see <http://www.gnu.org/licenses/>. */
+
+/* Written by Eric Blake <ebb9@byu.net>, 2008. */
+
+#include <config.h>
+
+#include "xmemdup0.h"
+
+#include <stdlib.h>
+#include <string.h>
+
+#include "progname.h"
+#include "macros.h"
+
+int
+main (int argc, char **argv)
+{
+ char buffer[10] = { 'a', 'b', 'c', 'd', '\0',
+ 'f', 'g', 'h', 'i', 'j' };
+
+ set_program_name (argv[0]);
+
+ /* Empty string. */
+ {
+ char *result = xmemdup0 (NULL, 0);
+ ASSERT (result);
+ ASSERT (!*result);
+ free (result);
+ }
+ {
+ char *result = xmemdup0 ("", 0);
+ ASSERT (result);
+ ASSERT (!*result);
+ free (result);
+ }
+
+ /* Various buffer lengths. */
+ {
+ char *result = xmemdup0 (buffer, 4);
+ ASSERT (result);
+ ASSERT (strcmp (result, buffer) == 0);
+ free (result);
+ }
+ {
+ char *result = xmemdup0 (buffer, 5);
+ ASSERT (result);
+ ASSERT (strcmp (result, buffer) == 0);
+ ASSERT (result[5] == '\0');
+ free (result);
+ }
+ {
+ char *result = xmemdup0 (buffer, 9);
+ ASSERT (result);
+ ASSERT (memcmp (result, buffer, 9) == 0);
+ ASSERT (result[9] == '\0');
+ free (result);
+ }
+ {
+ char *result = xmemdup0 (buffer, 10);
+ ASSERT (result);
+ ASSERT (memcmp (result, buffer, 10) == 0);
+ ASSERT (result[10] == '\0');
+ free (result);
+ }
+
+ return 0;
+}
diff --git a/gettext-tools/gnulib-tests/test-xvasprintf.c b/gettext-tools/gnulib-tests/test-xvasprintf.c
index 9e33844..985fe2e 100644
--- a/gettext-tools/gnulib-tests/test-xvasprintf.c
+++ b/gettext-tools/gnulib-tests/test-xvasprintf.c
@@ -1,5 +1,5 @@
/* Test of xvasprintf() and xasprintf() functions.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/uniconv/test-u8-conv-from-enc.c b/gettext-tools/gnulib-tests/uniconv/test-u8-conv-from-enc.c
index f37be0d..8efbed8 100644
--- a/gettext-tools/gnulib-tests/uniconv/test-u8-conv-from-enc.c
+++ b/gettext-tools/gnulib-tests/uniconv/test-u8-conv-from-enc.c
@@ -1,5 +1,5 @@
/* Test of conversion to UTF-8 from legacy encodings.
- Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ Copyright (C) 2007-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/unilbrk/test-u8-width-linebreaks.c b/gettext-tools/gnulib-tests/unilbrk/test-u8-width-linebreaks.c
index 157860a..867ec23 100644
--- a/gettext-tools/gnulib-tests/unilbrk/test-u8-width-linebreaks.c
+++ b/gettext-tools/gnulib-tests/unilbrk/test-u8-width-linebreaks.c
@@ -1,5 +1,5 @@
/* Test of line breaking of UTF-8 strings.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/uniname/test-uninames.c b/gettext-tools/gnulib-tests/uniname/test-uninames.c
index 2942d8d..b032472 100644
--- a/gettext-tools/gnulib-tests/uniname/test-uninames.c
+++ b/gettext-tools/gnulib-tests/uniname/test-uninames.c
@@ -1,5 +1,5 @@
/* Test the Unicode character name functions.
- Copyright (C) 2000-2003, 2005, 2007, 2009-2015 Free Software Foundation,
+ Copyright (C) 2000-2003, 2005, 2007, 2009-2016 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/unistr/test-cmp.h b/gettext-tools/gnulib-tests/unistr/test-cmp.h
index aece9b0..919401c 100644
--- a/gettext-tools/gnulib-tests/unistr/test-cmp.h
+++ b/gettext-tools/gnulib-tests/unistr/test-cmp.h
@@ -1,5 +1,5 @@
/* Test of uN_cmp() functions.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.c b/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.c
index f673ee8..f1fa748 100644
--- a/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.c
+++ b/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.c
@@ -1,5 +1,5 @@
/* Test of u16_mbtouc() function.
- Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.h b/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.h
index 7019b4a..c1197f4 100644
--- a/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.h
+++ b/gettext-tools/gnulib-tests/unistr/test-u16-mbtouc.h
@@ -1,5 +1,5 @@
/* Test of u16_mbtouc() and u16_mbtouc_unsafe() functions.
- Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/unistr/test-u8-check.c b/gettext-tools/gnulib-tests/unistr/test-u8-check.c
index fcf678c..f1fe900 100644
--- a/gettext-tools/gnulib-tests/unistr/test-u8-check.c
+++ b/gettext-tools/gnulib-tests/unistr/test-u8-check.c
@@ -1,5 +1,5 @@
/* Test of u8_check() function.
- Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/unistr/test-u8-cmp.c b/gettext-tools/gnulib-tests/unistr/test-u8-cmp.c
index 5606f0a..5b9f4c0 100644
--- a/gettext-tools/gnulib-tests/unistr/test-u8-cmp.c
+++ b/gettext-tools/gnulib-tests/unistr/test-u8-cmp.c
@@ -1,5 +1,5 @@
/* Test of u8_cmp() function.
- Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/unistr/test-u8-mblen.c b/gettext-tools/gnulib-tests/unistr/test-u8-mblen.c
index 3e68b66..e2ea3a8 100644
--- a/gettext-tools/gnulib-tests/unistr/test-u8-mblen.c
+++ b/gettext-tools/gnulib-tests/unistr/test-u8-mblen.c
@@ -1,5 +1,5 @@
/* Test of u8_mblen() function.
- Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/unistr/test-u8-mbtoucr.c b/gettext-tools/gnulib-tests/unistr/test-u8-mbtoucr.c
index 7f02e8b..7a7b0b9 100644
--- a/gettext-tools/gnulib-tests/unistr/test-u8-mbtoucr.c
+++ b/gettext-tools/gnulib-tests/unistr/test-u8-mbtoucr.c
@@ -1,5 +1,5 @@
/* Test of u8_mbtoucr() function.
- Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/unistr/test-u8-prev.c b/gettext-tools/gnulib-tests/unistr/test-u8-prev.c
index 9e2a9ba..33342ae 100644
--- a/gettext-tools/gnulib-tests/unistr/test-u8-prev.c
+++ b/gettext-tools/gnulib-tests/unistr/test-u8-prev.c
@@ -1,5 +1,5 @@
/* Test of u8_prev() function.
- Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/unistr/test-u8-strlen.c b/gettext-tools/gnulib-tests/unistr/test-u8-strlen.c
index d4b3224..b53c15a 100644
--- a/gettext-tools/gnulib-tests/unistr/test-u8-strlen.c
+++ b/gettext-tools/gnulib-tests/unistr/test-u8-strlen.c
@@ -1,5 +1,5 @@
/* Test of u8_strlen() function.
- Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/unistr/test-u8-uctomb.c b/gettext-tools/gnulib-tests/unistr/test-u8-uctomb.c
index f586f04..bbc9418 100644
--- a/gettext-tools/gnulib-tests/unistr/test-u8-uctomb.c
+++ b/gettext-tools/gnulib-tests/unistr/test-u8-uctomb.c
@@ -1,5 +1,5 @@
/* Test of u8_uctomb() function.
- Copyright (C) 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/gettext-tools/gnulib-tests/unistr/u8-cmp.c b/gettext-tools/gnulib-tests/unistr/u8-cmp.c
index 5574e8c..990c7ac 100644
--- a/gettext-tools/gnulib-tests/unistr/u8-cmp.c
+++ b/gettext-tools/gnulib-tests/unistr/u8-cmp.c
@@ -1,5 +1,5 @@
/* Compare pieces of UTF-8 strings.
- Copyright (C) 2002, 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2006, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-tests/unistr/u8-strlen.c b/gettext-tools/gnulib-tests/unistr/u8-strlen.c
index 5673ade..3180565 100644
--- a/gettext-tools/gnulib-tests/unistr/u8-strlen.c
+++ b/gettext-tools/gnulib-tests/unistr/u8-strlen.c
@@ -1,5 +1,5 @@
/* Determine length of UTF-8 string.
- Copyright (C) 2002, 2006, 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2006, 2009-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2002.
This program is free software: you can redistribute it and/or modify it
diff --git a/gettext-tools/gnulib-tests/wcrtomb.c b/gettext-tools/gnulib-tests/wcrtomb.c
index b38d2e0..b931ee9 100644
--- a/gettext-tools/gnulib-tests/wcrtomb.c
+++ b/gettext-tools/gnulib-tests/wcrtomb.c
@@ -1,5 +1,5 @@
/* Convert wide character to multibyte character.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/wctob.c b/gettext-tools/gnulib-tests/wctob.c
index 3ff6c7b..15e3ff3 100644
--- a/gettext-tools/gnulib-tests/wctob.c
+++ b/gettext-tools/gnulib-tests/wctob.c
@@ -1,5 +1,5 @@
/* Convert wide character to unibyte character.
- Copyright (C) 2008, 2010-2015 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2010-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/wctomb-impl.h b/gettext-tools/gnulib-tests/wctomb-impl.h
index 41217d5..a6ed971 100644
--- a/gettext-tools/gnulib-tests/wctomb-impl.h
+++ b/gettext-tools/gnulib-tests/wctomb-impl.h
@@ -1,5 +1,5 @@
/* Convert wide character to multibyte character.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2011.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/wctomb.c b/gettext-tools/gnulib-tests/wctomb.c
index 8022aa8..f1d14f5 100644
--- a/gettext-tools/gnulib-tests/wctomb.c
+++ b/gettext-tools/gnulib-tests/wctomb.c
@@ -1,5 +1,5 @@
/* Convert wide character to multibyte character.
- Copyright (C) 2011-2015 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2011.
This program is free software: you can redistribute it and/or modify
diff --git a/gettext-tools/gnulib-tests/zerosize-ptr.h b/gettext-tools/gnulib-tests/zerosize-ptr.h
index 76418aa..e6ff672 100644
--- a/gettext-tools/gnulib-tests/zerosize-ptr.h
+++ b/gettext-tools/gnulib-tests/zerosize-ptr.h
@@ -1,5 +1,5 @@
/* Return a pointer to a zero-size object in memory.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by