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 d7e5063..cb56f8a 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 8fd2f4c..4b79fa1 100644 (file)
@@ -3,6 +3,7 @@ tests/test-rbtree_list.c
 
 Depends-on:
 array-list
+progname
 
 configure.ac:
 
index 0b00165..4bcbd3d 100644 (file)
@@ -3,6 +3,7 @@ tests/test-rbtree_oset.c
 
 Depends-on:
 array-oset
+progname
 
 configure.ac:
 
index dbb74e7..07ba48b 100644 (file)
@@ -3,6 +3,7 @@ tests/test-rbtreehash_list.c
 
 Depends-on:
 array-list
+progname
 
 configure.ac:
 
index 70af1a4..d07e9e4 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 f6c3e69..735a2f6 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 c8a572c..4d98451 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]));