From: Bruno Haible Date: Sat, 3 Mar 2007 01:43:55 +0000 (+0000) Subject: Avoid link error due to 'program_name'. X-Git-Tag: cvs-readonly~932 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=854caf986aa0d9a23058f873382851a5145e1924;p=gnulib.git Avoid link error due to 'program_name'. --- diff --git a/ChangeLog b/ChangeLog index acfe9b5d1..e210c2ec1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-03-02 Bruno Haible + * modules/array-list-tests (Depends-on): Add progname. + * tests/test-array_list.c: Include progname.h. + (main): Call set_program_name. + * modules/argp-tests (Depends-on): Add progname. * tests/test-argp.c: Include argp.h first. Include progname.h. (main): Call set_program_name. diff --git a/modules/array-list-tests b/modules/array-list-tests index a1d1ba1e1..83dc54c43 100644 --- a/modules/array-list-tests +++ b/modules/array-list-tests @@ -2,6 +2,7 @@ Files: tests/test-array_list.c Depends-on: +progname configure.ac: diff --git a/tests/test-array_list.c b/tests/test-array_list.c index c043c83a6..3cd1e3eac 100644 --- a/tests/test-array_list.c +++ b/tests/test-array_list.c @@ -23,6 +23,7 @@ #include #include "gl_array_list.h" +#include "progname.h" static const char *objects[15] = { @@ -52,6 +53,8 @@ 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]));