]> Savannah Git Hosting - gnulib.git/commitdiff
Port tests away from progname
authorPino Toscano <ptoscano@redhat.com>
Thu, 18 Aug 2016 13:18:24 +0000 (15:18 +0200)
committerJim Meyering <meyering@fb.com>
Mon, 5 Sep 2016 16:21:54 +0000 (09:21 -0700)
Modules that need the program name already
depend on getprogname.
* modules/acl-tests (Depends-on): Remove progname.
* modules/argmatch (Depends-on): Likewise.
* modules/argmatch-tests (Depends-on): Likewise.
* modules/argp-tests (Depends-on): Likewise.
* modules/argp-version-etc-tests (Depends-on): Likewise.
* modules/array-list-tests (Depends-on): Likewise.
* modules/array-oset-tests (Depends-on): Likewise.
* modules/avltree-list-tests (Depends-on): Likewise.
* modules/avltree-oset-tests (Depends-on): Likewise.
* modules/avltreehash-list-tests (Depends-on): Likewise.
* modules/carray-list-tests (Depends-on): Likewise.
* modules/copy-file-tests (Depends-on): Likewise.
* modules/exclude-tests (Depends-on): Likewise.
* modules/fchownat-tests (Depends-on): Likewise.
* modules/fdopendir-tests (Depends-on): Likewise.
* modules/filenamecat-tests (Depends-on): Likewise.
* modules/fstatat-tests (Depends-on): Likewise.
* modules/fstrcmp-tests (Depends-on): Likewise.
* modules/linked-list-tests (Depends-on): Likewise.
* modules/linkedhash-list-tests (Depends-on): Likewise.
* modules/mkdirat-tests (Depends-on): Likewise.
* modules/nonblocking-pipe-tests (Depends-on): Likewise.
* modules/nonblocking-socket-tests (Depends-on): Likewise.
* modules/obstack-printf-tests (Depends-on): Likewise.
* modules/openat-tests (Depends-on): Likewise.
* modules/parse-datetime-tests (Depends-on): Likewise.
* modules/pipe-filter-gi-tests (Depends-on): Likewise.
* modules/pipe-filter-ii-tests (Depends-on): Likewise.
* modules/quotearg-simple-tests (Depends-on): Likewise.
* modules/quotearg-tests (Depends-on): Likewise.
* modules/rbtree-list-tests (Depends-on): Likewise.
* modules/rbtree-oset-tests (Depends-on): Likewise.
* modules/rbtreehash-list-tests (Depends-on): Likewise.
* modules/spawn-pipe-tests (Depends-on): Likewise.
* modules/system-quote-tests (Depends-on): Likewise.
* modules/uniname/uniname-tests (Depends-on): Likewise.
* modules/uninorm/nfc-tests (Depends-on): Likewise.
* modules/uninorm/nfd-tests (Depends-on): Likewise.
* modules/uninorm/nfkc-tests (Depends-on): Likewise.
* modules/uninorm/nfkd-tests (Depends-on): Likewise.
* modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
* modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
* modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
* modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
* modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
* modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
* modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
* modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
* modules/unlinkat-tests (Depends-on): Likewise.
* modules/version-etc-tests (Depends-on): Likewise.
* modules/xalloc-die-tests (Depends-on): Likewise.
* modules/xmemdup0-tests (Depends-on): Likewise.
* modules/xprintf-posix-tests (Depends-on): Likewise.
* modules/xvasprintf-tests (Depends-on): Likewise.
* tests/test-argmatch.c: Do not include progname.h.
(main) Stop calling set_program_name.
* tests/test-argp-version-etc.c: Likewise.
* tests/test-argp.c: Likewise.
* tests/test-argv-iter.c: Likewise.
* tests/test-array_list.c: Likewise.
* tests/test-array_oset.c: Likewise.
* tests/test-avltree_list.c: Likewise.
* tests/test-avltree_oset.c: Likewise.
* tests/test-avltreehash_list.c: Likewise.
* tests/test-carray_list.c: Likewise.
* tests/test-copy-acl.c: Likewise.
* tests/test-copy-file.c: Likewise.
* tests/test-exclude.c: Likewise.
* tests/test-fchownat.c: Likewise.
* tests/test-fdopendir.c: Likewise.
* tests/test-filenamecat.c: Likewise.
* tests/test-fstatat.c: Likewise.
* tests/test-fstrcmp.c: Likewise.
* tests/test-linked_list.c: Likewise.
* tests/test-linkedhash_list.c: Likewise.
* tests/test-mkdirat.c: Likewise.
* tests/test-nonblocking-pipe-main.c: Likewise.
* tests/test-nonblocking-socket-main.c: Likewise.
* tests/test-obstack-printf.c: Likewise.
* tests/test-openat.c: Likewise.
* tests/test-parse-datetime.c: Likewise.
* tests/test-pipe-filter-gi1.c: Likewise.
* tests/test-pipe-filter-gi2-main.c: Likewise.
* tests/test-pipe-filter-ii1.c: Likewise.
* tests/test-pipe-filter-ii2-main.c: Likewise.
* tests/test-quotearg-simple.c: Likewise.
* tests/test-quotearg.c: Likewise.
* tests/test-rbtree_list.c: Likewise.
* tests/test-rbtree_oset.c: Likewise.
* tests/test-rbtreehash_list.c: Likewise.
* tests/test-sameacls.c: Likewise.
* tests/test-set-mode-acl.c: Likewise.
* tests/test-spawn-pipe-main.c: Likewise.
* tests/test-system-quote-main.c: Likewise.
* tests/test-unlinkat.c: Likewise.
* tests/test-version-etc.c: Likewise.
* tests/test-xalloc-die.c: Likewise.
* tests/test-xfprintf-posix.c: Likewise.
* tests/test-xmemdup0.c: Likewise.
* tests/test-xprintf-posix.c: Likewise.
* tests/test-xvasprintf.c: Likewise.
* tests/uniname/test-uninames.c: Likewise.
* tests/uninorm/test-u32-nfc-big.c: Likewise.
* tests/uninorm/test-u32-nfd-big.c: Likewise.
* tests/uninorm/test-u32-nfkc-big.c: Likewise.
* tests/uninorm/test-u32-nfkd-big.c: Likewise.
* tests/unistdio/test-u16-vsnprintf1.c: Likewise.
* tests/unistdio/test-u16-vsprintf1.c: Likewise.
* tests/unistdio/test-u32-vsnprintf1.c: Likewise.
* tests/unistdio/test-u32-vsprintf1.c: Likewise.
* tests/unistdio/test-u8-vsnprintf1.c: Likewise.
* tests/unistdio/test-u8-vsprintf1.c: Likewise.
* tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
* tests/unistdio/test-ulc-vsprintf1.c: Likewise.
* tests/test-c-stack.c: (program_name): Do not define.
(main): Do not set program_name.
* tests/test-closein.c: Likewise.
* tests/test-xstrtol.c: Likewise.
* tests/test-yesno.c: Likewise.

117 files changed:
ChangeLog
modules/acl-tests
modules/argmatch-tests
modules/argp-tests
modules/argp-version-etc-tests
modules/array-list-tests
modules/array-oset-tests
modules/avltree-list-tests
modules/avltree-oset-tests
modules/avltreehash-list-tests
modules/carray-list-tests
modules/copy-file-tests
modules/exclude-tests
modules/fchownat-tests
modules/fdopendir-tests
modules/filenamecat-tests
modules/fstatat-tests
modules/fstrcmp-tests
modules/linked-list-tests
modules/linkedhash-list-tests
modules/mkdirat-tests
modules/nonblocking-pipe-tests
modules/nonblocking-socket-tests
modules/obstack-printf-tests
modules/openat-tests
modules/parse-datetime-tests
modules/pipe-filter-gi-tests
modules/pipe-filter-ii-tests
modules/quotearg-simple-tests
modules/quotearg-tests
modules/rbtree-list-tests
modules/rbtree-oset-tests
modules/rbtreehash-list-tests
modules/spawn-pipe-tests
modules/system-quote-tests
modules/uniname/uniname-tests
modules/uninorm/nfc-tests
modules/uninorm/nfd-tests
modules/uninorm/nfkc-tests
modules/uninorm/nfkd-tests
modules/unistdio/u16-vsnprintf-tests
modules/unistdio/u16-vsprintf-tests
modules/unistdio/u32-vsnprintf-tests
modules/unistdio/u32-vsprintf-tests
modules/unistdio/u8-vsnprintf-tests
modules/unistdio/u8-vsprintf-tests
modules/unistdio/ulc-vsnprintf-tests
modules/unistdio/ulc-vsprintf-tests
modules/unlinkat-tests
modules/version-etc-tests
modules/xalloc-die-tests
modules/xmemdup0-tests
modules/xprintf-posix-tests
modules/xvasprintf-tests
tests/test-argmatch.c
tests/test-argp-version-etc.c
tests/test-argp.c
tests/test-argv-iter.c
tests/test-array_list.c
tests/test-array_oset.c
tests/test-avltree_list.c
tests/test-avltree_oset.c
tests/test-avltreehash_list.c
tests/test-c-stack.c
tests/test-carray_list.c
tests/test-closein.c
tests/test-copy-acl.c
tests/test-copy-file.c
tests/test-exclude.c
tests/test-fchownat.c
tests/test-fdopendir.c
tests/test-filenamecat.c
tests/test-fstatat.c
tests/test-fstrcmp.c
tests/test-linked_list.c
tests/test-linkedhash_list.c
tests/test-mkdirat.c
tests/test-nonblocking-pipe-main.c
tests/test-nonblocking-socket-main.c
tests/test-obstack-printf.c
tests/test-openat.c
tests/test-parse-datetime.c
tests/test-pipe-filter-gi1.c
tests/test-pipe-filter-gi2-main.c
tests/test-pipe-filter-ii1.c
tests/test-pipe-filter-ii2-main.c
tests/test-quotearg-simple.c
tests/test-quotearg.c
tests/test-rbtree_list.c
tests/test-rbtree_oset.c
tests/test-rbtreehash_list.c
tests/test-sameacls.c
tests/test-set-mode-acl.c
tests/test-spawn-pipe-main.c
tests/test-system-quote-main.c
tests/test-unlinkat.c
tests/test-version-etc.c
tests/test-xalloc-die.c
tests/test-xfprintf-posix.c
tests/test-xmemdup0.c
tests/test-xprintf-posix.c
tests/test-xstrtol.c
tests/test-xvasprintf.c
tests/test-yesno.c
tests/uniname/test-uninames.c
tests/uninorm/test-u32-nfc-big.c
tests/uninorm/test-u32-nfd-big.c
tests/uninorm/test-u32-nfkc-big.c
tests/uninorm/test-u32-nfkd-big.c
tests/unistdio/test-u16-vsnprintf1.c
tests/unistdio/test-u16-vsprintf1.c
tests/unistdio/test-u32-vsnprintf1.c
tests/unistdio/test-u32-vsprintf1.c
tests/unistdio/test-u8-vsnprintf1.c
tests/unistdio/test-u8-vsprintf1.c
tests/unistdio/test-ulc-vsnprintf1.c
tests/unistdio/test-ulc-vsprintf1.c

index 467f04134ae3f651c7a324f1b7de46a86e8d0d98..3a2b2c96aa7eabaa037e76a89d1a69c79a07273c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,127 @@
+2016-08-18  Pino Toscano  <ptoscano@redhat.com>
+
+       Port tests away from progname, since modules that need the
+       program name already depend on getprogname.
+       * modules/acl-tests (Depends-on): Remove progname.
+       * modules/argmatch (Depends-on): Likewise.
+       * modules/argmatch-tests (Depends-on): Likewise.
+       * modules/argp-tests (Depends-on): Likewise.
+       * modules/argp-version-etc-tests (Depends-on): Likewise.
+       * modules/array-list-tests (Depends-on): Likewise.
+       * modules/array-oset-tests (Depends-on): Likewise.
+       * modules/avltree-list-tests (Depends-on): Likewise.
+       * modules/avltree-oset-tests (Depends-on): Likewise.
+       * modules/avltreehash-list-tests (Depends-on): Likewise.
+       * modules/carray-list-tests (Depends-on): Likewise.
+       * modules/copy-file-tests (Depends-on): Likewise.
+       * modules/exclude-tests (Depends-on): Likewise.
+       * modules/fchownat-tests (Depends-on): Likewise.
+       * modules/fdopendir-tests (Depends-on): Likewise.
+       * modules/filenamecat-tests (Depends-on): Likewise.
+       * modules/fstatat-tests (Depends-on): Likewise.
+       * modules/fstrcmp-tests (Depends-on): Likewise.
+       * modules/linked-list-tests (Depends-on): Likewise.
+       * modules/linkedhash-list-tests (Depends-on): Likewise.
+       * modules/mkdirat-tests (Depends-on): Likewise.
+       * modules/nonblocking-pipe-tests (Depends-on): Likewise.
+       * modules/nonblocking-socket-tests (Depends-on): Likewise.
+       * modules/obstack-printf-tests (Depends-on): Likewise.
+       * modules/openat-tests (Depends-on): Likewise.
+       * modules/parse-datetime-tests (Depends-on): Likewise.
+       * modules/pipe-filter-gi-tests (Depends-on): Likewise.
+       * modules/pipe-filter-ii-tests (Depends-on): Likewise.
+       * modules/quotearg-simple-tests (Depends-on): Likewise.
+       * modules/quotearg-tests (Depends-on): Likewise.
+       * modules/rbtree-list-tests (Depends-on): Likewise.
+       * modules/rbtree-oset-tests (Depends-on): Likewise.
+       * modules/rbtreehash-list-tests (Depends-on): Likewise.
+       * modules/spawn-pipe-tests (Depends-on): Likewise.
+       * modules/system-quote-tests (Depends-on): Likewise.
+       * modules/uniname/uniname-tests (Depends-on): Likewise.
+       * modules/uninorm/nfc-tests (Depends-on): Likewise.
+       * modules/uninorm/nfd-tests (Depends-on): Likewise.
+       * modules/uninorm/nfkc-tests (Depends-on): Likewise.
+       * modules/uninorm/nfkd-tests (Depends-on): Likewise.
+       * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
+       * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
+       * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
+       * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
+       * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
+       * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
+       * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
+       * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
+       * modules/unlinkat-tests (Depends-on): Likewise.
+       * modules/version-etc-tests (Depends-on): Likewise.
+       * modules/xalloc-die-tests (Depends-on): Likewise.
+       * modules/xmemdup0-tests (Depends-on): Likewise.
+       * modules/xprintf-posix-tests (Depends-on): Likewise.
+       * modules/xvasprintf-tests (Depends-on): Likewise.
+       * tests/test-argmatch.c: Do not include progname.h.
+       (main) Stop calling set_program_name.
+       * tests/test-argp-version-etc.c: Likewise.
+       * tests/test-argp.c: Likewise.
+       * tests/test-argv-iter.c: Likewise.
+       * tests/test-array_list.c: Likewise.
+       * tests/test-array_oset.c: Likewise.
+       * tests/test-avltree_list.c: Likewise.
+       * tests/test-avltree_oset.c: Likewise.
+       * tests/test-avltreehash_list.c: Likewise.
+       * tests/test-carray_list.c: Likewise.
+       * tests/test-copy-acl.c: Likewise.
+       * tests/test-copy-file.c: Likewise.
+       * tests/test-exclude.c: Likewise.
+       * tests/test-fchownat.c: Likewise.
+       * tests/test-fdopendir.c: Likewise.
+       * tests/test-filenamecat.c: Likewise.
+       * tests/test-fstatat.c: Likewise.
+       * tests/test-fstrcmp.c: Likewise.
+       * tests/test-linked_list.c: Likewise.
+       * tests/test-linkedhash_list.c: Likewise.
+       * tests/test-mkdirat.c: Likewise.
+       * tests/test-nonblocking-pipe-main.c: Likewise.
+       * tests/test-nonblocking-socket-main.c: Likewise.
+       * tests/test-obstack-printf.c: Likewise.
+       * tests/test-openat.c: Likewise.
+       * tests/test-parse-datetime.c: Likewise.
+       * tests/test-pipe-filter-gi1.c: Likewise.
+       * tests/test-pipe-filter-gi2-main.c: Likewise.
+       * tests/test-pipe-filter-ii1.c: Likewise.
+       * tests/test-pipe-filter-ii2-main.c: Likewise.
+       * tests/test-quotearg-simple.c: Likewise.
+       * tests/test-quotearg.c: Likewise.
+       * tests/test-rbtree_list.c: Likewise.
+       * tests/test-rbtree_oset.c: Likewise.
+       * tests/test-rbtreehash_list.c: Likewise.
+       * tests/test-sameacls.c: Likewise.
+       * tests/test-set-mode-acl.c: Likewise.
+       * tests/test-spawn-pipe-main.c: Likewise.
+       * tests/test-system-quote-main.c: Likewise.
+       * tests/test-unlinkat.c: Likewise.
+       * tests/test-version-etc.c: Likewise.
+       * tests/test-xalloc-die.c: Likewise.
+       * tests/test-xfprintf-posix.c: Likewise.
+       * tests/test-xmemdup0.c: Likewise.
+       * tests/test-xprintf-posix.c: Likewise.
+       * tests/test-xvasprintf.c: Likewise.
+       * tests/uniname/test-uninames.c: Likewise.
+       * tests/uninorm/test-u32-nfc-big.c: Likewise.
+       * tests/uninorm/test-u32-nfd-big.c: Likewise.
+       * tests/uninorm/test-u32-nfkc-big.c: Likewise.
+       * tests/uninorm/test-u32-nfkd-big.c: Likewise.
+       * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
+       * tests/unistdio/test-u16-vsprintf1.c: Likewise.
+       * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
+       * tests/unistdio/test-u32-vsprintf1.c: Likewise.
+       * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
+       * tests/unistdio/test-u8-vsprintf1.c: Likewise.
+       * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
+       * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
+       * tests/test-c-stack.c: (program_name): Do not define.
+       (main): Do not set program_name.
+       * tests/test-closein.c: Likewise.
+       * tests/test-xstrtol.c: Likewise.
+       * tests/test-yesno.c: Likewise.
+
 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
 
        Port modules to use getprogname explicitly, instead of requiring
index e755014fd6c75fa4362a90db616255a68eda05bf..3438f146f3dc13ab063a886030877c301ecc49b4 100644 (file)
@@ -12,7 +12,6 @@ tests/macros.h
 
 Depends-on:
 file-has-acl-tests
-progname
 read-file
 unistd
 xalloc
index 85ac3a2b561fed9437dda68c7ec9bfc0420f438f..cc02852bab60c3cc21ca59f5cbf6451d75a2349d 100644 (file)
@@ -3,7 +3,6 @@ tests/test-argmatch.c
 tests/macros.h
 
 Depends-on:
-progname
 
 configure.ac:
 
index 8f92a4def71a39ddde108a86a0d75e20d4040926..ce621d93a16fda5502a477c3f918da6a60212cc5 100644 (file)
@@ -3,7 +3,6 @@ tests/test-argp.c
 tests/test-argp-2.sh
 
 Depends-on:
-progname
 
 Makefile.am:
 TESTS += test-argp test-argp-2.sh
index c4451a24b7057e827fc14572aa7c9a4b60dd2f0c..df101821b4054b6d2b5ddb05cf26400695b6ae91 100644 (file)
@@ -4,7 +4,6 @@ tests/test-argp-version-etc-1.sh
 
 Depends-on:
 argp
-progname
 version-etc-fsf
 
 Makefile.am:
index 1e9524d26490bca4f3791d5d6b540ff60a689bcf..d80a0e01f843805316ef6f87be834c03aa58613b 100644 (file)
@@ -3,7 +3,6 @@ tests/test-array_list.c
 tests/macros.h
 
 Depends-on:
-progname
 
 configure.ac:
 
index 57913163123da3d3bd5eef2ae5d62a7c62756fff..2ccc86f73a5af9d9dc2858ed55ef2e9084188877 100644 (file)
@@ -5,7 +5,6 @@ tests/macros.h
 Depends-on:
 xlist
 array-list
-progname
 
 configure.ac:
 
index cbd47c7811fa4b429d254bdc76de9fed8c3adc7c..97fcb3d8fd1249537b91cba7c2d77a4db7bb9513 100644 (file)
@@ -4,7 +4,6 @@ tests/macros.h
 
 Depends-on:
 array-list
-progname
 
 configure.ac:
 
index a29ad587d407f52e144027199cf67177ea1db7d2..2cb98e0e4fb6d495da1033cfc1272341306d0789 100644 (file)
@@ -4,7 +4,6 @@ tests/macros.h
 
 Depends-on:
 array-oset
-progname
 
 configure.ac:
 
index eae613ec149dcfc3454ea857d1a1766c98d64145..24605aee8e5181d20962cb297e20f42d841d944d 100644 (file)
@@ -4,7 +4,6 @@ tests/macros.h
 
 Depends-on:
 array-list
-progname
 
 configure.ac:
 
index 4f13705ae201b31489df2023ea3e712a5f76a3f7..d3e7da1c0e06f7c3d8636daf44d5bf15d77f737e 100644 (file)
@@ -4,7 +4,6 @@ tests/macros.h
 
 Depends-on:
 array-list
-progname
 
 configure.ac:
 
index cc06a0bb50a278a1392d4b7566cfd6da34dbc526..c6eaf70a7239a9e2ce441559081a0cb91547bc36 100644 (file)
@@ -8,7 +8,6 @@ tests/macros.h
 Depends-on:
 acl
 acl-tests
-progname
 read-file
 xalloc
 
index cf0f69b77ddd2ad531d5be8d034728f5a6e31d98..f0dffe86a85e95da42ffbdb04af4e38f2cdb3449 100644 (file)
@@ -12,7 +12,6 @@ tests/test-exclude8.sh
 Depends-on:
 argmatch
 error
-progname
 test-framework-sh
 
 Makefile.am:
index 7b9991e6c6bf44070a625e086e09813a75f9d54a..4e289bda5d9f3fff45a13f4a97f1401fd0d4017a 100644 (file)
@@ -11,7 +11,6 @@ ignore-value
 mgetgroups
 nanosleep
 openat-h
-progname
 stat-time
 symlink
 
index 9dd53cc499d49efb00cf5c95592fe89df48217dc..6bd6711c68298c4c1faa6a8aa0477e7d39544ec9 100644 (file)
@@ -7,7 +7,6 @@ Depends-on:
 open
 opendir
 closedir
-progname
 
 configure.ac:
 
index 93ccac1407bc643812dccc1902a81a2c55a28762..14d3c1777e4c09301bd21af46144cb674d17a162 100644 (file)
@@ -3,7 +3,6 @@ tests/test-filenamecat.c
 
 Depends-on:
 stdbool
-progname
 
 configure.ac:
 
index 25dc559897cc01dfb009ba2e1a2c7b0136185861..461d8914f96721d17d66d4033aaf46ead5ac599f 100644 (file)
@@ -9,7 +9,6 @@ Depends-on:
 getcwd-lgpl
 ignore-value
 openat-h
-progname
 symlink
 
 configure.ac:
index b82f414b00d599e437342125fb8da94e0f7377dd..fa2183c113e372a842f4e690f962a41b9b201c97 100644 (file)
@@ -4,7 +4,6 @@ tests/macros.h
 
 Depends-on:
 stdbool
-progname
 
 configure.ac:
 
index d6fd5aa25290dfd56b2c0889c8539133efc5efae..c34e49edc88f8e30fc26791c010f5f2414d61db1 100644 (file)
@@ -4,7 +4,6 @@ tests/macros.h
 
 Depends-on:
 array-list
-progname
 
 configure.ac:
 
index 510914934bb5fc4064790a905318e441df3a37f1..6972bfd6c7d55bfbbd95444be6c759f15bb58ddb 100644 (file)
@@ -4,7 +4,6 @@ tests/macros.h
 
 Depends-on:
 array-list
-progname
 
 configure.ac:
 
index 103a5acaba60687326b821d58d8fbed82effd651..b2f3befb16b9cbcf1be8ef91eb56c4e22ef6b87f 100644 (file)
@@ -6,7 +6,6 @@ tests/macros.h
 
 Depends-on:
 ignore-value
-progname
 symlink
 
 configure.ac:
index eccf839b694a3899c23109097afecd555e9699fe..fa3b771f77fc0ed0c229271633adc367a084c789 100644 (file)
@@ -13,7 +13,6 @@ stdbool
 unistd
 nonblocking
 wait-process
-progname
 pipe-posix
 dup2
 environ
index 9c3a614f72d50c9a4091ef394f86ce60aedcabb0..2eb883ed334e1271cb50e596a080f5d9f2fff109 100644 (file)
@@ -16,7 +16,6 @@ unistd
 sys_socket
 nonblocking
 wait-process
-progname
 environ
 posix_spawnp
 netinet_in
index f1c99ca94a8a2c78f8ccdc528305eb44c2906aec..2790e6942b0565f36c753900dc7fa6c8d7c71bc8 100644 (file)
@@ -4,7 +4,6 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
-progname
 xalloc
 
 configure.ac:
index c42d843ceb77063fe0c739608ddc0e4dbaa8a9ba..0b7370d6f22e601145102db229aea68ab953291d 100644 (file)
@@ -5,7 +5,6 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
-progname
 symlink
 
 configure.ac:
index 04feed2f0f7a11a05d3d9d8b1853bd469f1520b0..7c62b8024adb6e3281a324dbb5aff491642a4e84 100644 (file)
@@ -3,7 +3,6 @@ tests/test-parse-datetime.c
 tests/macros.h
 
 Depends-on:
-progname
 setenv
 
 configure.ac:
index e5da5623947e105a98b9d39992d1a986f24eb503..ef6ace3c66fe2886abe5a01e7137b43a2648711f 100644 (file)
@@ -13,7 +13,6 @@ c-ctype
 read-file
 full-write
 usleep
-progname
 
 configure.ac:
 
index 236de130b9ec545789d367735fa35612508457f3..63d35abed9c296e600a86cce5591226c04f9f864 100644 (file)
@@ -12,7 +12,6 @@ binary-io
 c-ctype
 read-file
 full-write
-progname
 
 configure.ac:
 
index 5354c4b579df21615f7a1f30ec6f0c7783f7f158..3c932f037aeba86fd6069f58c644b7332aeed16e 100644 (file)
@@ -6,7 +6,6 @@ tests/zerosize-ptr.h
 m4/mmap-anon.m4
 
 Depends-on:
-progname
 stdint
 
 configure.ac:
index 1af4effd214f705fd285df5c41297aa9b5673239..885d4596ffe2fe5fb125d1eec2f74c8062bace49 100644 (file)
@@ -13,7 +13,6 @@ m4/codeset.m4
 
 Depends-on:
 gettext
-progname
 stdint
 setenv
 unsetenv
index c4262ab0cb9354f1ac79b91a067b55be2bd8eab8..6651b483511b71848250c34fda83ab299975f627 100644 (file)
@@ -4,7 +4,6 @@ tests/macros.h
 
 Depends-on:
 array-list
-progname
 
 configure.ac:
 
index db690783a8607f109fc52ca689ba06de3437e025..366faf23ccf1cbc640710ca0cff46dc125cb44d8 100644 (file)
@@ -4,7 +4,6 @@ tests/macros.h
 
 Depends-on:
 array-oset
-progname
 
 configure.ac:
 
index 446e44d1c8f673276f01c63f9307e0143ff00c7f..d27b2bc6bb6aad9044e6a18382c63217f1e78bce 100644 (file)
@@ -4,7 +4,6 @@ tests/macros.h
 
 Depends-on:
 array-list
-progname
 
 configure.ac:
 
index e17eece5338f54ba84cb1df5bfa17da869d0780d..f7831d5e4d4636d9e1563ff8564eb5b735611e86 100644 (file)
@@ -6,7 +6,6 @@ tests/macros.h
 
 Depends-on:
 close
-progname
 
 configure.ac:
 
index 7b6967bf7d51d7663e71399a08f710bcaf58f041..eb69bbd345fca1e386ea42f214493fc268564a8e 100644 (file)
@@ -10,7 +10,6 @@ tests/macros.h
 Depends-on:
 stdbool
 unistd
-progname
 popen
 pclose
 
index 14ccc4e33b475d2504c4430ffb5a85662f32b99f..296b237bc7066fa838104b1286a2194d71cf805f 100644 (file)
@@ -7,7 +7,6 @@ tests/uniname/NameAliases.txt
 
 Depends-on:
 xalloc
-progname
 
 configure.ac:
 
index 9a571ea9ee4c02837d5a997b2e7ac1490332ecbd..a32548cfbbbf526a824c7054f6923e80b3d47ebc 100644 (file)
@@ -16,7 +16,6 @@ unistr/u16-cmp
 unistr/u32-cmp
 unistr/u32-strlen
 xalloc
-progname
 
 configure.ac:
 AC_CHECK_DECLS_ONCE([alarm])
index 047c8a768ba2f088ee9eea1aff1f033b851a7d0c..2aa5a70de2b152801436eba2f7fad2d11d678d30 100644 (file)
@@ -16,7 +16,6 @@ unistr/u16-cmp
 unistr/u32-cmp
 unistr/u32-strlen
 xalloc
-progname
 
 configure.ac:
 AC_CHECK_DECLS_ONCE([alarm])
index 3d8b1a9767ec8ceaed746f823cd36a8888a3aea7..52a75d5b9cf8eef27fc4744a0c9c13af81d34740 100644 (file)
@@ -16,7 +16,6 @@ unistr/u16-cmp
 unistr/u32-cmp
 unistr/u32-strlen
 xalloc
-progname
 
 configure.ac:
 AC_CHECK_DECLS_ONCE([alarm])
index d3cb5d9db93c4a44e639df3e2e504afa72225b8a..2705c63acd5751dac6678845df261ec102fb318f 100644 (file)
@@ -16,7 +16,6 @@ unistr/u16-cmp
 unistr/u32-cmp
 unistr/u32-strlen
 xalloc
-progname
 
 configure.ac:
 AC_CHECK_DECLS_ONCE([alarm])
index cb17e7710ff2c79329e2bfd60fdb1be11af46684..6d25e27e34ae4a02fa7b1973ace0e15fe656a29b 100644 (file)
@@ -5,7 +5,6 @@ tests/macros.h
 
 Depends-on:
 xalloc
-progname
 
 configure.ac:
 
index 1eff147a8176be2fcb6bbc4e2d6c51e3eff371bf..47557839c3c366938bcafe30c134294b8c9262d4 100644 (file)
@@ -5,7 +5,6 @@ tests/macros.h
 
 Depends-on:
 xalloc
-progname
 
 configure.ac:
 
index d1536b5552c3599d3849c5ed9a8da9a418cd32cf..d272f76e02b16a7f16011aee7c26cea80f2d093e 100644 (file)
@@ -5,7 +5,6 @@ tests/macros.h
 
 Depends-on:
 xalloc
-progname
 
 configure.ac:
 
index 37fdaab86f1b153622dba8f7a43762cacaf5ddd8..37d2f3592898311c6847f0d3b2522548a5e51696 100644 (file)
@@ -5,7 +5,6 @@ tests/macros.h
 
 Depends-on:
 xalloc
-progname
 
 configure.ac:
 
index 98f81570d7d881c64eb34c5bcb406936c9526865..108405152388887098b458079f151572b450d9fd 100644 (file)
@@ -5,7 +5,6 @@ tests/macros.h
 
 Depends-on:
 xalloc
-progname
 
 configure.ac:
 
index ca8a20dc92a88f37d9a74cd4c68b7c2b5f1978b3..328242a178894e91a133beeb1ce75eaf6a817d30 100644 (file)
@@ -5,7 +5,6 @@ tests/macros.h
 
 Depends-on:
 xalloc
-progname
 
 configure.ac:
 
index 307b73fb2e8d893cb57bfcbb2890886c152e7ab0..112456bff8668ffa4d3af20f62b690ba8336f40d 100644 (file)
@@ -5,7 +5,6 @@ tests/macros.h
 
 Depends-on:
 xalloc
-progname
 
 configure.ac:
 
index 7f96872331e0fffdf282928f94d5a1b674bfd4d8..147dc9b45a190fd99ae6e1b7cfc89689cc27ddbc 100644 (file)
@@ -5,7 +5,6 @@ tests/macros.h
 
 Depends-on:
 xalloc
-progname
 
 configure.ac:
 
index 266ead75367936980ab831d5afcacac0e3569055..b0f35371f99ad03564b145dc9598b578c34fb156 100644 (file)
@@ -7,7 +7,6 @@ tests/macros.h
 
 Depends-on:
 ignore-value
-progname
 symlink
 unlinkdir
 
index 54936db7b0a2ad3e8675468d0c7ee046fa71b7a8..d67bd22264bcc176aa45833985d0c4f5713d6b8b 100644 (file)
@@ -3,7 +3,6 @@ tests/test-version-etc.c
 tests/test-version-etc.sh
 
 Depends-on:
-progname
 version-etc-fsf
 
 Makefile.am:
index e611f8010d04796d48c6e38a42c10b361d341fea..e13eceada0930ca614258fef7e09bfcdf4340f26 100644 (file)
@@ -3,7 +3,6 @@ tests/test-xalloc-die.c
 tests/test-xalloc-die.sh
 
 Depends-on:
-progname
 test-framework-sh
 
 Makefile.am:
index 13311f0fd5e34b241d6588e7061d7af942e12102..5bb5b769e20b6d1647f6897c111979adc053e77a 100644 (file)
@@ -3,7 +3,6 @@ tests/test-xmemdup0.c
 tests/macros.h
 
 Depends-on:
-progname
 
 configure.ac:
 
index a8b2984cd78634b46058709f11c64683b813fadd..1e5cc3d22ca5c2c7053c22da114dabb6f98be842 100644 (file)
@@ -10,7 +10,6 @@ tests/macros.h
 
 Depends-on:
 stdint
-progname
 
 configure.ac:
 
index 77d536ebda9f8beab4f3a32dce89d6447d258626..7e1484471a014bee518dcdd66452d646a634f24e 100644 (file)
@@ -3,7 +3,6 @@ tests/test-xvasprintf.c
 tests/macros.h
 
 Depends-on:
-progname
 
 configure.ac:
 
index 9a3a4a91eaf361e4351b5162a4299460b29aac72..89749435d602ddd7ac702ccae8d6cea5e5718449 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <stdlib.h>
 
-#include "progname.h"
 #include "macros.h"
 
 /* Some packages define ARGMATCH_DIE and ARGMATCH_DIE_DECL in <config.h>, and
@@ -63,8 +62,6 @@ static const enum backup_type backup_vals[] =
 int
 main (int argc, char *argv[])
 {
-  set_program_name (argv[0]);
-
   /* Not found.  */
   ASSERT (ARGMATCH ("klingon", backup_args, backup_vals) == -1);
 
index 99406044118b16df2a9e4049866767876ddd96f2..cfef0d9c4b123c6ce7f9b67d30f9e3a8dc107b31 100644 (file)
@@ -18,7 +18,6 @@
 #include <config.h>
 #include "argp-version-etc.h"
 #include "argp.h"
-#include "progname.h"
 
 static char doc[] = "test for the argp-version-etc module";
 
@@ -42,7 +41,6 @@ const char *authors[] =
 int
 main (int argc, char **argv)
 {
-  set_program_name (argv[0]);
   argp_version_setup ("test-argp-version-etc", authors);
   return argp_parse (&test_argp, argc, argv, 0, NULL, NULL);
 }
index d786953b6c9bdee3d9e7f6bfdddec4ec6fd89fb2..0f5495e53d432a3a67623656936361517112f26d 100644 (file)
@@ -25,7 +25,6 @@
 #if HAVE_STRINGS_H
 # include <strings.h>
 #endif
-#include "progname.h"
 
 struct test_args
 {
@@ -459,8 +458,6 @@ main (int argc, char **argv)
   struct argp_child argp_children[3], group1_children[2], group2_children[2];
   test_fp *fun;
 
-  set_program_name (argv[0]);
-
   group1_children[0] = group1_1_child;
   group1_children[1].argp = NULL;
   group1_argp.children = group1_children;
index f4ce9e663d2e3a97a1598dad6eb27fc2b3673c3e..e7fc602fcf7bc19b6471d9e589d2c7d48e873cc4 100644 (file)
@@ -47,7 +47,6 @@ write_nul_delimited_argv (char **argv)
 int
 main (void)
 {
-  /* set_program_name (argv[0]); placate overzealous "syntax-check" test.  */
   static char one[] = "1";
   static char two[] = "2";
   static char three[] = "3";
index 88e2bb2f97860c39537feb80da4bd001b09204a2..efdd5796ada2edb37d1034fcfd7bd2a49c3d1c2a 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <stdlib.h>
 
-#include "progname.h"
 #include "macros.h"
 
 static const char *objects[15] =
@@ -50,8 +49,6 @@ main (int argc, char *argv[])
 {
   gl_list_t list1, list2;
 
-  set_program_name (argv[0]);
-
   /* Allow the user to provide a non-default random seed on the command line.  */
   if (argc > 1)
     srand (atoi (argv[1]));
index 2cf05eb194c9a4720fb2ae143fdf251e4a6d7edb..08a6102e67011ab95542ba5afcff7adbe4434247 100644 (file)
@@ -24,7 +24,6 @@
 
 #include "gl_xlist.h"
 #include "gl_array_list.h"
-#include "progname.h"
 #include "macros.h"
 
 static const char *objects[30] =
@@ -73,8 +72,6 @@ main (int argc, char *argv[])
   gl_oset_t set1;
   gl_list_t set2;
 
-  set_program_name (argv[0]);
-
   /* Allow the user to provide a non-default random seed on the command line.  */
   if (argc > 1)
     srand (atoi (argv[1]));
index 039fbe8bf789a035f82b97dc4e723c33a1953634..21a10880f704e8ef3d1c38ef3e37a878bd182765 100644 (file)
@@ -22,7 +22,6 @@
 #include <stdlib.h>
 
 #include "gl_array_list.h"
-#include "progname.h"
 #include "macros.h"
 
 extern void gl_avltree_list_check_invariants (gl_list_t list);
@@ -62,8 +61,6 @@ main (int argc, char *argv[])
 {
   gl_list_t list1, list2, list3;
 
-  set_program_name (argv[0]);
-
   /* Allow the user to provide a non-default random seed on the command line.  */
   if (argc > 1)
     srand (atoi (argv[1]));
index 9d0ceab542fe52f4241ff550274dd678d0da3e5d..c134a22a28467125ac972c3509137ba6c2aaf794 100644 (file)
@@ -23,7 +23,6 @@
 #include <string.h>
 
 #include "gl_array_oset.h"
-#include "progname.h"
 #include "macros.h"
 
 extern void gl_avltree_oset_check_invariants (gl_oset_t set);
@@ -72,8 +71,6 @@ main (int argc, char *argv[])
 {
   gl_oset_t set1, set2;
 
-  set_program_name (argv[0]);
-
   /* Allow the user to provide a non-default random seed on the command line.  */
   if (argc > 1)
     srand (atoi (argv[1]));
index fcbe3d1c5aa491c2ef13e9f866435dcb95bb603b..ff46f19a2cec9e58b94618d701129ee0cd1c6305 100644 (file)
@@ -24,7 +24,6 @@
 #include <string.h>
 
 #include "gl_array_list.h"
-#include "progname.h"
 #include "macros.h"
 
 extern void gl_avltreehash_list_check_invariants (gl_list_t list);
@@ -89,8 +88,6 @@ main (int argc, char *argv[])
 {
   gl_list_t list1, list2, list3;
 
-  set_program_name (argv[0]);
-
   /* Allow the user to provide a non-default random seed on the command line.  */
   if (argc > 1)
     srand (atoi (argv[1]));
index 073f1c60128a25ed5a6ff12e2686e5a11a9b7975..238fc11e2a33a3997cbd4904345c5b6c0394ab75 100644 (file)
@@ -30,8 +30,6 @@
 
 #include "macros.h"
 
-char *program_name;
-
 static volatile int *
 recurse_1 (volatile int n, volatile int *p)
 {
@@ -60,7 +58,6 @@ main (int argc, char **argv)
   setrlimit (RLIMIT_STACK, &rl);
 #endif
 
-  program_name = argv[0];
   if (c_stack_action (NULL) == 0)
     {
       if (1 < argc)
index 46c1fee2c14931dd864b2b02760771ed37520797..828e2bad193705bda7da7a0480ba989a8753ffa8 100644 (file)
@@ -22,7 +22,6 @@
 #include <stdlib.h>
 
 #include "gl_array_list.h"
-#include "progname.h"
 #include "macros.h"
 
 static const char *objects[15] =
@@ -58,8 +57,6 @@ main (int argc, char *argv[])
 {
   gl_list_t list1, list2, list3;
 
-  set_program_name (argv[0]);
-
   /* Allow the user to provide a non-default random seed on the command line.  */
   if (argc > 1)
     srand (atoi (argv[1]));
index 77fd69cf1579214fff4f6ee1e456e50a19cb61b8..8710a4de67e9cd7a840e9d58b88ca553f1b1fe95 100644 (file)
@@ -27,8 +27,6 @@
 #include "binary-io.h"
 #include "ignore-value.h"
 
-char *program_name;
-
 /* With no arguments, do nothing.  With arguments, attempt to consume
    first 6 bytes of stdin.  In either case, let exit() take care of
    closing std streams and changing exit status if ferror(stdin).  */
@@ -37,7 +35,6 @@ main (int argc, char **argv)
 {
   char buf[7];
   atexit (close_stdin);
-  program_name = argv[0];
 
   /* close_stdin currently relies on ftell, but mingw ftell is
      unreliable on text mode input.  */
index 93bcf42d9c784b38a0645a9e4bfdaae034838444..1dfd2e2c56c5653895f62d83b583f0d35f0f1929 100644 (file)
@@ -27,7 +27,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
-#include "progname.h"
 #include "macros.h"
 
 int
@@ -40,8 +39,6 @@ main (int argc, char *argv[])
   int mode;
   int fd2;
 
-  set_program_name (argv[0]);
-
   ASSERT (argc == 3);
 
   file1 = argv[1];
index 57bd930d577b20dfb09674f771d089f19a7f48f7..47e88722e658d4fa26921fa43f0bd4b8c12390db 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <stdlib.h>
 
-#include "progname.h"
 #include "macros.h"
 
 int
@@ -32,8 +31,6 @@ main (int argc, char *argv[])
   const char *file2;
   int null_stderr;
 
-  set_program_name (argv[0]);
-
   ASSERT (argc == 3);
 
   file1 = argv[1];
index 9b20ba5243ccc5db6ccbfe79af745d236f30ac8b..7a13faf86581e4b5e076cb709ab054ddbe79d5b9 100644 (file)
@@ -24,7 +24,6 @@
 #include <fnmatch.h>
 
 #include "exclude.h"
-#include "progname.h"
 #include "error.h"
 #include "argmatch.h"
 
@@ -75,8 +74,6 @@ main (int argc, char **argv)
   int exclude_options = 0;
   struct exclude *exclude = new_exclude ();
 
-  set_program_name (argv[0]);
-
   if (argc == 1)
     error (1, 0, "usage: %s file -- words...", argv[0]);
 
index 926a2a9c447a2ac61010d7b6dcd4a79e6c464e4a..9536047eb3abe33ef45b62fba049d4024f539af9 100644 (file)
@@ -32,7 +32,6 @@ SIGNATURE_CHECK (fchownat, int, (int, char const *, uid_t, gid_t, int));
 
 #include "mgetgroups.h"
 #include "openat.h"
-#include "progname.h"
 #include "stat-time.h"
 #include "ignore-value.h"
 #include "macros.h"
@@ -64,8 +63,6 @@ main (int argc _GL_UNUSED, char *argv[])
   int result1; /* Skip because of no chown/symlink support.  */
   int result2; /* Skip because of no lchown support.  */
 
-  set_program_name (argv[0]);
-
   /* Clean up any trash from prior testsuite runs.  */
   ignore_value (system ("rm -rf " BASE "*"));
 
index 683b55c8e85bf34b7dd8ce3322846f2695df2180..4f190eba89f9391915ecf9ce47ae13f9232c334a 100644 (file)
@@ -27,7 +27,6 @@ SIGNATURE_CHECK (fdopendir, DIR *, (int));
 #include <fcntl.h>
 #include <unistd.h>
 
-#include "progname.h"
 #include "macros.h"
 
 int
@@ -36,8 +35,6 @@ main (int argc _GL_UNUSED, char *argv[])
   DIR *d;
   int fd;
 
-  set_program_name (argv[0]);
-
   /* A non-directory cannot be turned into a directory stream.  */
   fd = open ("test-fdopendir.tmp", O_RDONLY | O_CREAT, 0600);
   ASSERT (0 <= fd);
index 79f752f7d1a1d798f893a53f8353c72f9105a4f6..06e551a11f82a878a6133f8ef7945e247ef51b9d 100644 (file)
@@ -26,7 +26,6 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "progname.h"
 
 int
 main (int argc _GL_UNUSED, char *argv[])
@@ -49,8 +48,6 @@ main (int argc _GL_UNUSED, char *argv[])
   unsigned int i;
   bool fail = false;
 
-  set_program_name (argv[0]);
-
   for (i = 0; i < sizeof tests / sizeof tests[0]; i++)
     {
       char *base_in_result;
index fdcf51c8abf71429924b3cc38f53298faf650165..ace54b827c8854430665f7bca6b338a26fff679c 100644 (file)
@@ -31,7 +31,6 @@ SIGNATURE_CHECK (fstatat, int, (int, char const *, struct stat *, int));
 #include <unistd.h>
 
 #include "openat.h"
-#include "progname.h"
 #include "same-inode.h"
 #include "ignore-value.h"
 #include "macros.h"
@@ -72,8 +71,6 @@ main (int argc _GL_UNUSED, char *argv[])
 {
   int result;
 
-  set_program_name (argv[0]);
-
   /* Remove any leftovers from a previous partial run.  */
   ignore_value (system ("rm -rf " BASE "*"));
 
index c109444e81356b79114983314cdd0ec3ea98cc8d..77826869213ab836d0eadb52d23aa8b1aaea9a74 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <stdbool.h>
 
-#include "progname.h"
 #include "macros.h"
 
 static bool
@@ -66,8 +65,6 @@ check_fstrcmp (const char *string1, const char *string2, double expected)
 int
 main (int argc, char *argv[])
 {
-  set_program_name (argv[0]);
-
   ASSERT (check_fstrcmp ("Langstrumpf", "Langstrumpf", 1.0));
   ASSERT (check_fstrcmp ("Levenshtein", "Levenstein", 20./21.));
   ASSERT (check_fstrcmp ("Levenstein", "Levenshtein", 20./21.));
index da38df5f8b3b689bd87f9bb14b592dc7adb372b5..ffade79ad7a75eca41d260d4c011006aed0083ce 100644 (file)
@@ -22,7 +22,6 @@
 #include <stdlib.h>
 
 #include "gl_array_list.h"
-#include "progname.h"
 #include "macros.h"
 
 static const char *objects[15] =
@@ -58,8 +57,6 @@ main (int argc, char *argv[])
 {
   gl_list_t list1, list2, list3;
 
-  set_program_name (argv[0]);
-
   /* Allow the user to provide a non-default random seed on the command line.  */
   if (argc > 1)
     srand (atoi (argv[1]));
index 946df5df72da3be1593814e8c9613b9787721ce2..5da90c20b63a464ece694e66fc57238ca4b4c674 100644 (file)
@@ -24,7 +24,6 @@
 #include <string.h>
 
 #include "gl_array_list.h"
-#include "progname.h"
 #include "macros.h"
 
 static const char *objects[15] =
@@ -85,8 +84,6 @@ main (int argc, char *argv[])
 {
   gl_list_t list1, list2, list3;
 
-  set_program_name (argv[0]);
-
   /* Allow the user to provide a non-default random seed on the command line.  */
   if (argc > 1)
     srand (atoi (argv[1]));
index 4aedae56cd49b22a984db1f8430aa75f37ec7752..1cfab8e339d22c8fd96b735b1639680281dcb3b1 100644 (file)
@@ -30,7 +30,6 @@ SIGNATURE_CHECK (mkdirat, int, (int, char const *, mode_t));
 #include <stdlib.h>
 #include <unistd.h>
 
-#include "progname.h"
 #include "ignore-value.h"
 #include "macros.h"
 
@@ -52,8 +51,6 @@ main (int argc _GL_UNUSED, char *argv[])
 {
   int result;
 
-  set_program_name (argv[0]);
-
   /* Clean up any trash from prior testsuite runs.  */
   ignore_value (system ("rm -rf " BASE "*"));
 
index c350678ab7c2955eab6b3af0c6130e6a83a93229..3d6be823b1a9ac78e62536186a350435640c2ba8 100644 (file)
@@ -32,7 +32,6 @@
 
 #include "nonblocking.h"
 #include "wait-process.h"
-#include "progname.h"
 
 #include "macros.h"
 #include "test-nonblocking-pipe.h"
@@ -48,8 +47,6 @@ main (int argc, char *argv[])
   int child;
   int exitcode;
 
-  set_program_name (argv[0]);
-
   child_path = argv[1];
   test = atoi (argv[2]);
 
index 045b7ae30f0e402d796c4f12172b1fe0c0010c0d..d08014a4b1720f078015581b98cbc40f343ae4cf 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "nonblocking.h"
 #include "wait-process.h"
-#include "progname.h"
 
 #include "macros.h"
 #include "socket-server.h"
@@ -52,8 +51,6 @@ main (int argc, char *argv[])
   int server_socket;
   int exitcode;
 
-  set_program_name (argv[0]);
-
   child_path = argv[1];
   test = atoi (argv[2]);
 
index b8e176d87e3411ede15bf54cd195cf85f2d6963e..0c63dc485b528454f4306786a438680d44c923be 100644 (file)
@@ -32,7 +32,6 @@ SIGNATURE_CHECK (obstack_vprintf, int, (struct obstack *, char const *,
 #include <stdlib.h>
 #include <string.h>
 
-#include "progname.h"
 #include "macros.h"
 
 #define obstack_chunk_alloc xmalloc
@@ -130,8 +129,6 @@ test_obstack_printf ()
 int
 main (int argc, char *argv[])
 {
-  set_program_name (argv[0]);
-
   test_obstack_vprintf ();
   test_obstack_printf ();
   return 0;
index 4bdee9b1a019e80bb5da5c59949386f10ed6fab6..06a7b4dd95ae3a9be9cb6de0d848bad5d380ba8e 100644 (file)
@@ -29,7 +29,6 @@ SIGNATURE_CHECK (openat, int, (int, char const *, int, ...));
 #include <stdio.h>
 #include <unistd.h>
 
-#include "progname.h"
 #include "macros.h"
 
 #define BASE "test-openat.t"
@@ -63,8 +62,6 @@ main (int argc _GL_UNUSED, char *argv[])
 {
   int result;
 
-  set_program_name (argv[0]);
-
   /* Test behaviour for invalid file descriptors.  */
   {
     errno = 0;
index 16a2136a72f5739141193308338e790e99b13da1..c94fdf36ececa08d05ccd6b83fd213b810d280fa 100644 (file)
@@ -24,7 +24,6 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "progname.h"
 #include "macros.h"
 
 #ifdef DEBUG
@@ -121,8 +120,6 @@ main (int argc _GL_UNUSED, char **argv)
   long gmtoff;
   time_t ref_time = 1304250918;
 
-  set_program_name (argv[0]);
-
   /* Set the time zone to US Eastern time with the 2012 rules.  This
      should disable any leap second support.  Otherwise, there will be
      a problem with glibc on sites that default to leap seconds; see
index a2c29153936a43609d8b06d1c9eefa47202b9041..939374bfb203fa27bb4a3fc0212d17c9e39c2d37 100644 (file)
@@ -22,7 +22,6 @@
 #include "binary-io.h"
 #include "c-ctype.h"
 #include "read-file.h"
-#include "progname.h"
 #include "macros.h"
 
 
@@ -75,8 +74,6 @@ main (int argc, char *argv[])
   size_t input_size;
   char *input;
 
-  set_program_name (argv[0]);
-
   ASSERT (argc == 3);
 
   tr_program = argv[1];
index 865d1c3516e9d856908014cefae2aff536acc943..b7738b9fac450aaf1d584bc6ebc5b570ecdb3ee2 100644 (file)
@@ -27,7 +27,6 @@
 #include <signal.h>
 
 #include "full-write.h"
-#include "progname.h"
 #include "macros.h"
 
 /* 0.1 sec pause */
@@ -73,8 +72,6 @@ main (int argc, char **argv)
   struct pipe_filter_gi *f;
   const char *path[] = { NULL, NULL };
 
-  set_program_name (argv[0]);
-
   ASSERT (argc == 2);
 
   /* Test writing to a nonexistent program traps sooner or later.  */
index 5096673ed5a53f8fba939c1377c7a04abf7125d4..7155733d19ec1e64ad04dd05dfe8d1566ee93864 100644 (file)
@@ -22,7 +22,6 @@
 #include "binary-io.h"
 #include "c-ctype.h"
 #include "read-file.h"
-#include "progname.h"
 #include "macros.h"
 
 
@@ -97,8 +96,6 @@ main (int argc, char *argv[])
   size_t input_size;
   char *input;
 
-  set_program_name (argv[0]);
-
   ASSERT (argc == 3);
 
   tr_program = argv[1];
index 60a3752c16e36602c6ceaa182cfbdc4a14854ddc..b0f069e23269630648b0bcec6e7b81fe6953ee27 100644 (file)
@@ -27,7 +27,6 @@
 #include <signal.h>
 
 #include "full-write.h"
-#include "progname.h"
 #include "macros.h"
 
 struct locals
@@ -87,8 +86,6 @@ main (int argc, char **argv)
 {
   const char *path[] = { NULL, NULL };
 
-  set_program_name (argv[0]);
-
   ASSERT (argc == 2);
 
   /* Test writing to a nonexistent program traps sooner or later.  */
index 6bb4b35bbf674db5d68677ab99b5bb7674333a83..65584da71bdc312392a7c84308e87921f79155f2 100644 (file)
@@ -27,7 +27,6 @@
 #include <string.h>
 
 #include "localcharset.h"
-#include "progname.h"
 #include "macros.h"
 #include "zerosize-ptr.h"
 
@@ -251,8 +250,6 @@ main (int argc _GL_UNUSED, char *argv[])
   int i;
   bool ascii_only = MB_CUR_MAX == 1 && !isprint ((unsigned char) LQ[0]);
 
-  set_program_name (argv[0]);
-
   /* This part of the program is hard-wired to the C locale since it
      does not call setlocale.  However, according to POSIX, the use of
      8-bit bytes in a character context in the C locale gives
index d39c892f67f3aa1cfa4463faba18ece82c8cb3dc..e43573da37efb05f7effa329473ccbf8ac00ba8a 100644 (file)
@@ -26,7 +26,6 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "progname.h"
 #include "gettext.h"
 #include "macros.h"
 
@@ -63,8 +62,6 @@ static struct result_groups locale_results[] = {
 int
 main (int argc _GL_UNUSED, char *argv[])
 {
-  set_program_name (argv[0]);
-
 #if ENABLE_NLS
   /* Clean up environment.  */
   unsetenv ("LANGUAGE");
index 62a56bfcd7d79ba99ec3c947a4e3ec32f32682e3..d138e2f66a93526bdc12d451c6e4dd9915b70fe5 100644 (file)
@@ -22,7 +22,6 @@
 #include <stdlib.h>
 
 #include "gl_array_list.h"
-#include "progname.h"
 #include "macros.h"
 
 extern void gl_rbtree_list_check_invariants (gl_list_t list);
@@ -62,8 +61,6 @@ main (int argc, char *argv[])
 {
   gl_list_t list1, list2, list3;
 
-  set_program_name (argv[0]);
-
   /* Allow the user to provide a non-default random seed on the command line.  */
   if (argc > 1)
     srand (atoi (argv[1]));
index 9b4c517a60e61c11ac0a036a34c3752004b8b255..9155301e332e4fd041e8e8d4fb2bf4f4bcb2b991 100644 (file)
@@ -23,7 +23,6 @@
 #include <string.h>
 
 #include "gl_array_oset.h"
-#include "progname.h"
 #include "macros.h"
 
 extern void gl_rbtree_oset_check_invariants (gl_oset_t set);
@@ -72,8 +71,6 @@ main (int argc, char *argv[])
 {
   gl_oset_t set1, set2;
 
-  set_program_name (argv[0]);
-
   /* Allow the user to provide a non-default random seed on the command line.  */
   if (argc > 1)
     srand (atoi (argv[1]));
index 8bd985627d93cce6740eb7acd21ee07991cd370d..12fddf13c25aa1270da802f3fab74044ab1531d9 100644 (file)
@@ -24,7 +24,6 @@
 #include <string.h>
 
 #include "gl_array_list.h"
-#include "progname.h"
 #include "macros.h"
 
 extern void gl_rbtreehash_list_check_invariants (gl_list_t list);
@@ -89,8 +88,6 @@ main (int argc, char *argv[])
 {
   gl_list_t list1, list2, list3;
 
-  set_program_name (argv[0]);
-
   /* Allow the user to provide a non-default random seed on the command line.  */
   if (argc > 1)
     srand (atoi (argv[1]));
index 4f78e094163dbb1b2ae42083cb178bb63c829192..aa34ae624bb1697893b3818f7efd005cbc5bfb39 100644 (file)
@@ -33,7 +33,6 @@
 # include <aclv.h>
 #endif
 
-#include "progname.h"
 #include "read-file.h"
 #include "xalloc.h"
 #include "macros.h"
@@ -44,8 +43,6 @@ main (int argc, char *argv[])
   const char *file1;
   const char *file2;
 
-  set_program_name (argv[0]);
-
   ASSERT (argc == 3);
 
   file1 = argv[1];
index 028a09b28d7777e9963c1ba846271463c96d8677..d50dbff5d4e48eabe468d2ac750c5a7fee414e3f 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <stdlib.h>
 
-#include "progname.h"
 #include "macros.h"
 
 int
@@ -31,8 +30,6 @@ main (int argc, char *argv[])
   const char *file;
   int mode;
 
-  set_program_name (argv[0]);
-
   ASSERT (argc == 3);
 
   file = argv[1];
index 2275238cedbbbf4e4c437800a8798cd84b02f24d..6986eef5956c0e0c21de0a4be3b33be612c771c6 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "spawn-pipe.h"
 #include "wait-process.h"
-#include "progname.h"
 
 #include <stdbool.h>
 #include <stdio.h>
@@ -80,8 +79,6 @@ main (int argc, char *argv[])
   int test;
   int fd;
 
-  set_program_name (argv[0]);
-
   if (argc != 3)
     {
       fprintf (stderr, "%s: need 2 arguments\n", argv[0]);
index 091f4c8db016cdbac0358539323fe0a2aee3abc3..8eb6a17cc9a1ce20d9fd69737404ea27a3ad3be0 100644 (file)
@@ -36,7 +36,6 @@
 # include <windows.h>
 #endif
 
-#include "progname.h"
 #include "macros.h"
 
 #define EXPECTED_DATA_FILE "t-sq-data.tmp"
@@ -318,8 +317,6 @@ main (int argc, char *argv[])
 {
   char *prog;
 
-  set_program_name (argv[0]);
-
   if (argc != 2)
     {
       fprintf (stderr, "%s: need 1 argument\n", argv[0]);
index c55a2e2e2ce19f6e1ed8cf43c4a4ba08f425ae09..f6c7b6d4c3c0bfbe324c61b7b4cacce130c704f3 100644 (file)
@@ -30,7 +30,6 @@ SIGNATURE_CHECK (unlinkat, int, (int, char const *, int));
 #include <stdlib.h>
 #include <sys/stat.h>
 
-#include "progname.h"
 #include "unlinkdir.h"
 #include "ignore-value.h"
 #include "macros.h"
@@ -63,8 +62,6 @@ main (int argc _GL_UNUSED, char *argv[])
   int result1;
   int result2;
 
-  set_program_name (argv[0]);
-
   /* Remove any leftovers from a previous partial run.  */
   ignore_value (system ("rm -rf " BASE "*"));
 
index 4382c764b8c91f6595bcec22e1305b91560872aa..66404a338e6f76160a31e1ee1186d75198c6572d 100644 (file)
 
 #include "version-etc.h"
 
-#include "progname.h"
 
 #define AUTHORS "Sergey Poznyakoff", "Eric Blake"
 
 int
 main (int argc _GL_UNUSED, char **argv)
 {
-  set_program_name (argv[0]);
   version_etc (stdout, "test-version-etc", "dummy", "0", AUTHORS,
                (const char *) NULL);
   return 0;
index 9329750f5599c82d65d68a128855de561394b57b..f681ca5c35583735ed44feec59122d7604f048b0 100644 (file)
 #include <config.h>
 
 #include "xalloc.h"
-#include "progname.h"
 
 int
 main (int argc _GL_UNUSED, char **argv)
 {
-  set_program_name (argv[0]);
   xalloc_die ();
   return 0;
 }
index 1477d148f4e1e10b399b2a061d5145b1feca8545..2b2c2e7d80da979aa8dc70f192a0ad264a1dea8b 100644 (file)
@@ -25,7 +25,6 @@
 #include <stdint.h>
 #include <string.h>
 
-#include "progname.h"
 #include "macros.h"
 
 #include "test-fprintf-posix.h"
@@ -33,8 +32,6 @@
 int
 main (int argc _GL_UNUSED, char *argv[])
 {
-  set_program_name (argv[0]);
-
   test_function (xfprintf);
   return 0;
 }
index bbe94ca7dbd992d4b9cd86e0f374d282d465fec5..6f00512d93508f18ff6cd5738d04754424be51ba 100644 (file)
@@ -23,7 +23,6 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "progname.h"
 #include "macros.h"
 
 int
@@ -32,8 +31,6 @@ 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);
index ceddf1a2fa0ef93df2a82232f565ffb7d2016d46..420b4099db1ce5e9f3201694c27b02aa292f3dd0 100644 (file)
@@ -24,7 +24,6 @@
 #include <stdint.h>
 #include <string.h>
 
-#include "progname.h"
 #include "macros.h"
 
 #include "test-printf-posix.h"
@@ -32,8 +31,6 @@
 int
 main (int argc _GL_UNUSED, char *argv[])
 {
-  set_program_name (argv[0]);
-
   test_function (xprintf);
   return 0;
 }
index fef45e53f3ec8de250cde9335890efdc0329891f..d1452828a049ea7951301b40575db32d4720ef26 100644 (file)
@@ -29,8 +29,6 @@
 # define __spec "ld"
 #endif
 
-char *program_name;
-
 /* Don't show the program name in error messages.  */
 static void
 print_no_progname (void)
@@ -43,7 +41,6 @@ main (int argc, char **argv)
   strtol_error s_err;
   int i;
 
-  program_name = argv[0];
   error_print_progname = print_no_progname;
 
   for (i = 1; i < argc; i++)
index 985fe2e234602e21ecb8c0f10591bda3612820bd..14d7efa0b3f33b698a11cc564fd9966934fd69d9 100644 (file)
@@ -31,7 +31,6 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "progname.h"
 #include "macros.h"
 
 static char *
@@ -129,8 +128,6 @@ test_xasprintf (void)
 int
 main (int argc _GL_UNUSED, char *argv[])
 {
-  set_program_name (argv[0]);
-
   test_xvasprintf ();
   test_xasprintf ();
 
index 1d8e6b9736741f9abbafd87e4cbd23557a1475f6..2d59a60d13c190754ed53bc4f705c4ea2b1cf040 100644 (file)
@@ -27,8 +27,6 @@
 #include "closein.h"
 #include "binary-io.h"
 
-char *program_name;
-
 /* Test yesno.  Without arguments, read one line.  If first argument
    is zero, close stdin before attempting to read one line.
    Otherwise, read the number of lines specified by first
@@ -37,7 +35,6 @@ int
 main (int argc, char **argv)
 {
   int i = 1;
-  program_name = argv[0];
 
   /* yesno recommends that all clients use close_stdin in main.  */
   atexit (close_stdin);
index b0324722c8d9423917ed858445c7a39bbb7a7c38..3b345e5783b4c04963f0d211e6fcdc6f382d0533 100644 (file)
@@ -23,7 +23,6 @@
 
 #include "xalloc.h"
 #include "uniname.h"
-#include "progname.h"
 
 /* The names according to the UnicodeData.txt file, modified to contain the
    Hangul syllable names, as described in the Unicode 3.0 book.  */
@@ -367,8 +366,6 @@ main (int argc, char *argv[])
   int error = 0;
   int i;
 
-  set_program_name (argv[0]);
-
   for (i = 1; i < argc && strcmp (argv[i], "--") != 0; i++)
     fill_names (argv[i]);
 
index 7ca55ecd2a1e3fed03cf20ab509ab76a6f022c63..65022383329c40d22e86f3323c3165a0e02c6d6d 100644 (file)
@@ -25,7 +25,6 @@
 #include <stdlib.h>
 
 #include "unistr.h"
-#include "progname.h"
 #include "test-u32-normalize-big.h"
 
 static int
@@ -102,7 +101,6 @@ main (int argc, char *argv[])
 {
   struct normalization_test_file file;
 
-  set_program_name (argv[0]);
   read_normalization_test_file (argv[1], &file);
 
   test_specific (&file, check);
index 5cff4a8fada51e2128dea76b0829b75c8eca1f61..7d1f9c22e05cbedf86898d55995c4adb22534076 100644 (file)
@@ -25,7 +25,6 @@
 #include <stdlib.h>
 
 #include "unistr.h"
-#include "progname.h"
 #include "test-u32-normalize-big.h"
 
 static int
@@ -102,7 +101,6 @@ main (int argc, char *argv[])
 {
   struct normalization_test_file file;
 
-  set_program_name (argv[0]);
   read_normalization_test_file (argv[1], &file);
 
   test_specific (&file, check);
index 5fcabe339bb3654fe791ae3888866c2dceeeda5e..109f59c985c193581972357ec6ebc3cc9d9738af 100644 (file)
@@ -25,7 +25,6 @@
 #include <stdlib.h>
 
 #include "unistr.h"
-#include "progname.h"
 #include "test-u32-normalize-big.h"
 
 static int
@@ -99,7 +98,6 @@ main (int argc, char *argv[])
 {
   struct normalization_test_file file;
 
-  set_program_name (argv[0]);
   read_normalization_test_file (argv[1], &file);
 
   test_specific (&file, check);
index 43edc8bf6ee2cc896dfb101c19aa807be870d8e5..109f449fd458960b215f1dd45e4db968d56bf616 100644 (file)
@@ -25,7 +25,6 @@
 #include <stdlib.h>
 
 #include "unistr.h"
-#include "progname.h"
 #include "test-u32-normalize-big.h"
 
 static int
@@ -99,7 +98,6 @@ main (int argc, char *argv[])
 {
   struct normalization_test_file file;
 
-  set_program_name (argv[0]);
   read_normalization_test_file (argv[1], &file);
 
   test_specific (&file, check);
index 8dddb689b61da62a25acfbd461ca120a50fa4c5f..b5d63e25c615aafc9f542586b86607794bc1fb27 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "unistr.h"
 #include "xalloc.h"
-#include "progname.h"
 #include "macros.h"
 
 #include "test-u16-printf1.h"
@@ -63,8 +62,6 @@ test_vsnprintf ()
 int
 main (int argc, char *argv[])
 {
-  set_program_name (argv[0]);
-
   test_vsnprintf ();
 
   return 0;
index 9fa953f17aee46d89cccc3aaa60f5fbdfe4f7086..52279c649227046b7fa34ff5420eca3544e8fa49 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "unistr.h"
 #include "xalloc.h"
-#include "progname.h"
 #include "macros.h"
 
 #include "test-u16-printf1.h"
@@ -63,8 +62,6 @@ test_vsprintf ()
 int
 main (int argc, char *argv[])
 {
-  set_program_name (argv[0]);
-
   test_vsprintf ();
 
   return 0;
index 5edb476e010a144739b2c21a4d42389f10ecc6e4..d3765ab7571ef9efa6dbc507264b9becb4ba631c 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "unistr.h"
 #include "xalloc.h"
-#include "progname.h"
 #include "macros.h"
 
 #include "test-u32-printf1.h"
@@ -63,8 +62,6 @@ test_vsnprintf ()
 int
 main (int argc, char *argv[])
 {
-  set_program_name (argv[0]);
-
   test_vsnprintf ();
 
   return 0;
index a4fa42f31edaf0d2a090f26c435be41069133e56..f9e7d64d1dd6d9572f24fe09f6ac897199206e13 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "unistr.h"
 #include "xalloc.h"
-#include "progname.h"
 #include "macros.h"
 
 #include "test-u32-printf1.h"
@@ -63,8 +62,6 @@ test_vsprintf ()
 int
 main (int argc, char *argv[])
 {
-  set_program_name (argv[0]);
-
   test_vsprintf ();
 
   return 0;
index d174a91664b232379754016b76c187bfb22a9d1d..1d61caa05434e99531fa93789c260f040c79accf 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "unistr.h"
 #include "xalloc.h"
-#include "progname.h"
 #include "macros.h"
 
 #include "test-u8-printf1.h"
@@ -63,8 +62,6 @@ test_vsnprintf ()
 int
 main (int argc, char *argv[])
 {
-  set_program_name (argv[0]);
-
   test_vsnprintf ();
 
   return 0;
index a7b35d1955c363dcebd8fd79d693fc6278f13480..4a3ac76be7f3fd5b088bff9b1bfcc5269c5985dd 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "unistr.h"
 #include "xalloc.h"
-#include "progname.h"
 #include "macros.h"
 
 #include "test-u8-printf1.h"
@@ -63,8 +62,6 @@ test_vsprintf ()
 int
 main (int argc, char *argv[])
 {
-  set_program_name (argv[0]);
-
   test_vsprintf ();
 
   return 0;
index 6042c3c2d63711a56a1bbded915f4ce66a3f0262..fa9d23c47ea76f92a4e07b92df4230abfa13f5da 100644 (file)
@@ -27,7 +27,6 @@
 #include <string.h>
 
 #include "xalloc.h"
-#include "progname.h"
 #include "macros.h"
 
 #include "test-ulc-printf1.h"
@@ -56,8 +55,6 @@ test_vsnprintf ()
 int
 main (int argc, char *argv[])
 {
-  set_program_name (argv[0]);
-
   test_vsnprintf ();
 
   return 0;
index e9966ed02ca069508528c1d8d8a92f981a11ba77..06a18d7b738c830353bd559b19acf859c2b6c482 100644 (file)
@@ -27,7 +27,6 @@
 #include <string.h>
 
 #include "xalloc.h"
-#include "progname.h"
 #include "macros.h"
 
 #include "test-ulc-printf1.h"
@@ -56,8 +55,6 @@ test_vsprintf ()
 int
 main (int argc, char *argv[])
 {
-  set_program_name (argv[0]);
-
   test_vsprintf ();
 
   return 0;