Commit f7bf2e44 authored by Pino Toscano's avatar Pino Toscano Committed by Jim Meyering

Port tests away from progname

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.
parent f29814b9
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
......@@ -12,7 +12,6 @@ tests/macros.h
Depends-on:
file-has-acl-tests
progname
read-file
unistd
xalloc
......
......@@ -3,7 +3,6 @@ tests/test-argmatch.c
tests/macros.h
Depends-on:
progname
configure.ac:
......
......@@ -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
......
......@@ -4,7 +4,6 @@ tests/test-argp-version-etc-1.sh
Depends-on:
argp
progname
version-etc-fsf
Makefile.am:
......
......@@ -3,7 +3,6 @@ tests/test-array_list.c
tests/macros.h
Depends-on:
progname
configure.ac:
......
......@@ -5,7 +5,6 @@ tests/macros.h
Depends-on:
xlist
array-list
progname
configure.ac:
......
......@@ -4,7 +4,6 @@ tests/macros.h
Depends-on:
array-list
progname
configure.ac:
......
......@@ -4,7 +4,6 @@ tests/macros.h
Depends-on:
array-oset
progname
configure.ac:
......
......@@ -4,7 +4,6 @@ tests/macros.h
Depends-on:
array-list
progname
configure.ac:
......
......@@ -4,7 +4,6 @@ tests/macros.h
Depends-on:
array-list
progname
configure.ac:
......
......@@ -8,7 +8,6 @@ tests/macros.h
Depends-on:
acl
acl-tests
progname
read-file
xalloc
......
......@@ -12,7 +12,6 @@ tests/test-exclude8.sh
Depends-on:
argmatch
error
progname
test-framework-sh
Makefile.am:
......
......@@ -11,7 +11,6 @@ ignore-value
mgetgroups
nanosleep
openat-h
progname
stat-time
symlink
......
......@@ -7,7 +7,6 @@ Depends-on:
open
opendir
closedir
progname
configure.ac:
......
......@@ -3,7 +3,6 @@ tests/test-filenamecat.c
Depends-on:
stdbool
progname
configure.ac:
......
......@@ -9,7 +9,6 @@ Depends-on:
getcwd-lgpl
ignore-value
openat-h
progname
symlink
configure.ac:
......
......@@ -4,7 +4,6 @@ tests/macros.h
Depends-on:
stdbool
progname
configure.ac:
......
......@@ -4,7 +4,6 @@ tests/macros.h
Depends-on:
array-list
progname
configure.ac:
......
......@@ -4,7 +4,6 @@ tests/macros.h
Depends-on:
array-list
progname
configure.ac:
......
......@@ -6,7 +6,6 @@ tests/macros.h
Depends-on:
ignore-value
progname
symlink
configure.ac:
......
......@@ -13,7 +13,6 @@ stdbool
unistd
nonblocking
wait-process
progname
pipe-posix
dup2
environ
......
......@@ -16,7 +16,6 @@ unistd
sys_socket
nonblocking
wait-process
progname
environ
posix_spawnp
netinet_in
......
......@@ -4,7 +4,6 @@ tests/signature.h
tests/macros.h
Depends-on:
progname
xalloc
configure.ac:
......
......@@ -5,7 +5,6 @@ tests/signature.h
tests/macros.h
Depends-on:
progname
symlink
configure.ac:
......
......@@ -3,7 +3,6 @@ tests/test-parse-datetime.c
tests/macros.h
Depends-on:
progname
setenv
configure.ac:
......
......@@ -13,7 +13,6 @@ c-ctype
read-file
full-write
usleep
progname
configure.ac:
......
......@@ -12,7 +12,6 @@ binary-io
c-ctype
read-file
full-write
progname
configure.ac:
......
......@@ -6,7 +6,6 @@ tests/zerosize-ptr.h
m4/mmap-anon.m4
Depends-on:
progname
stdint
configure.ac:
......
......@@ -13,7 +13,6 @@ m4/codeset.m4
Depends-on:
gettext
progname
stdint
setenv
unsetenv
......
......@@ -4,7 +4,6 @@ tests/macros.h
Depends-on:
array-list
progname
configure.ac:
......
......@@ -4,7 +4,6 @@ tests/macros.h
Depends-on:
array-oset
progname
configure.ac:
......
......@@ -4,7 +4,6 @@ tests/macros.h
Depends-on:
array-list
progname
configure.ac:
......
......@@ -6,7 +6,6 @@ tests/macros.h
Depends-on:
close
progname
configure.ac:
......
......@@ -10,7 +10,6 @@ tests/macros.h
Depends-on:
stdbool
unistd
progname
popen
pclose
......
......@@ -7,7 +7,6 @@ tests/uniname/NameAliases.txt
Depends-on:
xalloc
progname
configure.ac:
......
......@@ -16,7 +16,6 @@ unistr/u16-cmp
unistr/u32-cmp
unistr/u32-strlen
xalloc
progname
configure.ac:
AC_CHECK_DECLS_ONCE([alarm])
......
......@@ -16,7 +16,6 @@ unistr/u16-cmp
unistr/u32-cmp
unistr/u32-strlen
xalloc
progname
configure.ac:
AC_CHECK_DECLS_ONCE([alarm])
......
......@@ -16,7 +16,6 @@ unistr/u16-cmp
unistr/u32-cmp
unistr/u32-strlen
xalloc
progname
configure.ac:
AC_CHECK_DECLS_ONCE([alarm])
......
......@@ -16,7 +16,6 @@ unistr/u16-cmp
unistr/u32-cmp
unistr/u32-strlen
xalloc
progname
configure.ac:
AC_CHECK_DECLS_ONCE([alarm])
......
......@@ -5,7 +5,6 @@ tests/macros.h
Depends-on:
xalloc
progname
configure.ac:
......
......@@ -5,7 +5,6 @@ tests/macros.h
Depends-on:
xalloc
progname
configure.ac:
......
......@@ -5,7 +5,6 @@ tests/macros.h
Depends-on:
xalloc
progname
configure.ac:
......
......@@ -5,7 +5,6 @@ tests/macros.h
Depends-on:
xalloc
progname
configure.ac:
......
......@@ -5,7 +5,6 @@ tests/macros.h
Depends-on:
xalloc
progname
configure.ac:
......
......@@ -5,7 +5,6 @@ tests/macros.h
Depends-on:
xalloc
progname
configure.ac:
......
......@@ -5,7 +5,6 @@ tests/macros.h
Depends-on:
xalloc
progname
configure.ac:
......
......@@ -5,7 +5,6 @@ tests/macros.h
Depends-on:
xalloc
progname
configure.ac:
......
......@@ -7,7 +7,6 @@ tests/macros.h
Depends-on:
ignore-value
progname
symlink
unlinkdir
......
......@@ -3,7 +3,6 @@ tests/test-version-etc.c
tests/test-version-etc.sh
Depends-on:
progname
version-etc-fsf
Makefile.am:
......
......@@ -3,7 +3,6 @@ tests/test-xalloc-die.c
tests/test-xalloc-die.sh
Depends-on:
progname
test-framework-sh
Makefile.am:
......
......@@ -3,7 +3,6 @@ tests/test-xmemdup0.c
tests/macros.h
Depends-on:
progname
configure.ac:
......
......@@ -10,7 +10,6 @@ tests/macros.h
Depends-on:
stdint
progname
configure.ac:
......
......@@ -3,7 +3,6 @@ tests/test-xvasprintf.c
tests/macros.h
Depends-on:
progname
configure.ac:
......
......@@ -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);
......
......@@ -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);
}
......@@ -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;
......
......@@ -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";
......
......@@ -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]));
......
......@@ -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]));
......
......@@ -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]));
......
......@@ -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]));
......
......@@ -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]));
......