Avoid link error due to program_name.
authorBruno Haible <bruno@clisp.org>
Sat, 3 Mar 2007 01:47:40 +0000 (01:47 +0000)
committerBruno Haible <bruno@clisp.org>
Sat, 3 Mar 2007 01:47:40 +0000 (01:47 +0000)
ChangeLog
modules/array-oset-tests
modules/avltree-list-tests
modules/avltree-oset-tests
modules/avltreehash-list-tests
tests/test-array_oset.c
tests/test-avltree_list.c
tests/test-avltree_oset.c
tests/test-avltreehash_list.c

index e66daaf..5e31343 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2007-03-02  Bruno Haible  <bruno@clisp.org>
 
+       * modules/avltree-oset-tests (Depends-on): Add progname.
+       * tests/test-avltree_oset.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/avltree-list-tests (Depends-on): Add progname.
+       * tests/test-avltree_list.c: Include progname.h.
+       (main): Call set_program_name.
+
        * modules/array-oset-tests (Depends-on): Add progname.
        * tests/test-array_oset.c: Include progname.h.
        (main): Call set_program_name.
index 6a00623..6079e85 100644 (file)
@@ -3,6 +3,7 @@ tests/test-array_oset.c
 
 Depends-on:
 array-list
+progname
 
 configure.ac:
 
index 43c0f46..03a490d 100644 (file)
@@ -3,6 +3,7 @@ tests/test-avltree_list.c
 
 Depends-on:
 array-list
+progname
 
 configure.ac:
 
index 6e8eec3..92298dc 100644 (file)
@@ -3,6 +3,7 @@ tests/test-avltree_oset.c
 
 Depends-on:
 array-oset
+progname
 
 configure.ac:
 
index 983e8a2..dd013d2 100644 (file)
@@ -3,6 +3,7 @@ tests/test-avltreehash_list.c
 
 Depends-on:
 array-list
+progname
 
 configure.ac:
 
index 8e23eb1..b28e3d2 100644 (file)
@@ -26,6 +26,7 @@
 #include <string.h>
 
 #include "gl_array_list.h"
+#include "progname.h"
 
 static const char *objects[30] =
   {
@@ -75,6 +76,8 @@ 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 26d3396..b8bd0df 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of sequential list data type implementation.
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2006-2007 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2006.
 
    This program is free software; you can redistribute it and/or modify
 # include <config.h>
 #endif
 
+#include "gl_avltree_list.h"
+
 #include <stdlib.h>
 
 #include "gl_array_list.h"
-#include "gl_avltree_list.h"
+#include "progname.h"
 
 extern void gl_avltree_list_check_invariants (gl_list_t list);
 
index 02066f6..c5c7248 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of ordered set data type implementation.
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2006-2007 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2006.
 
    This program is free software; you can redistribute it and/or modify
 # include <config.h>
 #endif
 
+#include "gl_avltree_oset.h"
+
 #include <stdlib.h>
 #include <string.h>
 
 #include "gl_array_oset.h"
-#include "gl_avltree_oset.h"
+#include "progname.h"
 
 extern void gl_avltree_oset_check_invariants (gl_oset_t set);
 
index dc1f6e8..1d0fa49 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of sequential list data type implementation.
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2006-2007 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2006.
 
    This program is free software; you can redistribute it and/or modify
 # include <config.h>
 #endif
 
+#include "gl_avltreehash_list.h"
+
 #include <limits.h>
 #include <stdlib.h>
 #include <string.h>
 
 #include "gl_array_list.h"
-#include "gl_avltreehash_list.h"
+#include "progname.h"
 
 extern void gl_avltreehash_list_check_invariants (gl_list_t list);
 
@@ -91,6 +93,8 @@ 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]));