changeset 8286:bd763d866c77

Avoid link error due to 'program_name'.
author Bruno Haible <bruno@clisp.org>
date Sat, 03 Mar 2007 01:43:55 +0000
parents fd56d321b961
children 6ce7f76c71eb
files ChangeLog modules/array-list-tests tests/test-array_list.c
diffstat 3 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-03-02  Bruno Haible  <bruno@clisp.org>
 
+	* 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.
--- a/modules/array-list-tests
+++ b/modules/array-list-tests
@@ -2,6 +2,7 @@
 tests/test-array_list.c
 
 Depends-on:
+progname
 
 configure.ac:
 
--- a/tests/test-array_list.c
+++ b/tests/test-array_list.c
@@ -23,6 +23,7 @@
 #include <stdlib.h>
 
 #include "gl_array_list.h"
+#include "progname.h"
 
 static const char *objects[15] =
   {
@@ -52,6 +53,8 @@
 {
   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]));