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 e66daaf904ddda12fe82702e5272902849550e0e..5e3134317a7128353e8059b4403b269d6c8489ee 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 6a0062330ece0dbaa7293d098590b001314e4bb4..6079e85d5f29b47e00904e83b51447b29dc3ab7c 100644 (file)
@@ -3,6 +3,7 @@ tests/test-array_oset.c
 
 Depends-on:
 array-list
+progname
 
 configure.ac:
 
index 43c0f4688a654f885675010463751d516a69120a..03a490dfd5a850fd4460c9fdd973662b1f229293 100644 (file)
@@ -3,6 +3,7 @@ tests/test-avltree_list.c
 
 Depends-on:
 array-list
+progname
 
 configure.ac:
 
index 6e8eec396e28ac92bb2e02109ec45a72aa0ec2dc..92298dccac8b2902b1fef83c158226b1afac86e0 100644 (file)
@@ -3,6 +3,7 @@ tests/test-avltree_oset.c
 
 Depends-on:
 array-oset
+progname
 
 configure.ac:
 
index 983e8a2dfa254e45b3b98935ca2d14c518336d6b..dd013d21214df06605f7bd7afdc46c6c8fc2ea41 100644 (file)
@@ -3,6 +3,7 @@ tests/test-avltreehash_list.c
 
 Depends-on:
 array-list
+progname
 
 configure.ac:
 
index 8e23eb1deb605388f1ac7a0291de4cc8211d322d..b28e3d2194f9867a15598a6cf09fb9f86b8f1819 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 26d33962fe1b267c0085422b1eefcb3b874cb47c..b8bd0df2f638abc69e005296c251b901df043fee 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 02066f6401772e18f1f9d74f7be0b88a52ae0a5f..c5c724873cb9936a5f6536af1df433b0d0cac17e 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 dc1f6e85b11cea4a2fb6423741d51febec687032..1d0fa49aa21a108425f1d39410d4cbca8f33831f 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]));