Avoid link error due to program_name.
authorBruno Haible <bruno@clisp.org>
Sat, 3 Mar 2007 12:56:10 +0000 (12:56 +0000)
committerBruno Haible <bruno@clisp.org>
Sat, 3 Mar 2007 12:56:10 +0000 (12:56 +0000)
ChangeLog
modules/rbtree-list-tests
modules/rbtree-oset-tests
modules/rbtreehash-list-tests
tests/test-rbtree_list.c
tests/test-rbtree_oset.c
tests/test-rbtreehash_list.c

index d7e5063e0ce99a95b69c1234bdb7989cad10c766..cb56f8a6738befaf134344d5728af940d15b2bfd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,11 @@
 2007-03-02  Bruno Haible  <bruno@clisp.org>
 
-       * modules/rbtreehash-list-tests (Depends-on): Add progname.
-       * tests/test-rbtreehash_list.c: Include progname.h.
+       * modules/rbtree-oset-tests (Depends-on): Add progname.
+       * tests/test-rbtree_oset.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/rbtree-list-tests (Depends-on): Add progname.
+       * tests/test-rbtree_list.c: Include progname.h.
        (main): Call set_program_name.
 
        * modules/linked-list-tests (Depends-on): Add progname.
index 8fd2f4c6dd0890b9d2e8fb9f698786a161b16b27..4b79fa1c8e3d5aaac249c63bcea54bb701d9fe3f 100644 (file)
@@ -3,6 +3,7 @@ tests/test-rbtree_list.c
 
 Depends-on:
 array-list
+progname
 
 configure.ac:
 
index 0b0016528302f6483202ca1e8e7ba8a368896f70..4bcbd3d86e015f993e0c7b2a10ea753f7ae21282 100644 (file)
@@ -3,6 +3,7 @@ tests/test-rbtree_oset.c
 
 Depends-on:
 array-oset
+progname
 
 configure.ac:
 
index dbb74e74031b0b87f26c0e4c2d78016e503e6bfc..07ba48b1f696fd6dd8086e770c8b7151075d0726 100644 (file)
@@ -3,6 +3,7 @@ tests/test-rbtreehash_list.c
 
 Depends-on:
 array-list
+progname
 
 configure.ac:
 
index 70af1a40e883f9a9bfa244b42f34458e790ab677..d07e9e46fa2eefa3442ec5210a438634c3413b51 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_rbtree_list.h"
+
 #include <stdlib.h>
 
 #include "gl_array_list.h"
-#include "gl_rbtree_list.h"
+#include "progname.h"
 
 extern void gl_rbtree_list_check_invariants (gl_list_t list);
 
@@ -64,6 +66,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]));
index f6c3e69ef41ac931397f49595d150437bee85039..735a2f692f7630bb9a06f325edb2842d222a2f4d 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_rbtree_oset.h"
+
 #include <stdlib.h>
 #include <string.h>
 
 #include "gl_array_oset.h"
-#include "gl_rbtree_oset.h"
+#include "progname.h"
 
 extern void gl_rbtree_oset_check_invariants (gl_oset_t set);
 
@@ -74,6 +76,8 @@ 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]));
index c8a572c0ece0e7cf8308dc905607c1523a9bdee6..4d98451c7562da57bdc30f2de43bff762ff3ffae 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_rbtreehash_list.h"
+
 #include <limits.h>
 #include <stdlib.h>
 #include <string.h>
 
 #include "gl_array_list.h"
-#include "gl_rbtreehash_list.h"
+#include "progname.h"
 
 extern void gl_rbtreehash_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]));