Mercurial > hg > octave-kai > gnulib-hg
changeset 8289:a24f55137420
Avoid link error due to program_name.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 03 Mar 2007 01:47:40 +0000 |
parents | 322359f17a20 |
children | 1e9dc2d06c6f |
files | 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 |
diffstat | 9 files changed, 29 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- a/modules/array-oset-tests +++ b/modules/array-oset-tests @@ -3,6 +3,7 @@ Depends-on: array-list +progname configure.ac:
--- a/modules/avltree-list-tests +++ b/modules/avltree-list-tests @@ -3,6 +3,7 @@ Depends-on: array-list +progname configure.ac:
--- a/modules/avltree-oset-tests +++ b/modules/avltree-oset-tests @@ -3,6 +3,7 @@ Depends-on: array-oset +progname configure.ac:
--- a/modules/avltreehash-list-tests +++ b/modules/avltreehash-list-tests @@ -3,6 +3,7 @@ Depends-on: array-list +progname configure.ac:
--- a/tests/test-array_oset.c +++ b/tests/test-array_oset.c @@ -26,6 +26,7 @@ #include <string.h> #include "gl_array_list.h" +#include "progname.h" static const char *objects[30] = { @@ -75,6 +76,8 @@ 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]));
--- a/tests/test-avltree_list.c +++ b/tests/test-avltree_list.c @@ -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 @@ -20,10 +20,12 @@ # 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);
--- a/tests/test-avltree_oset.c +++ b/tests/test-avltree_oset.c @@ -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 @@ -20,11 +20,13 @@ # 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);
--- a/tests/test-avltreehash_list.c +++ b/tests/test-avltreehash_list.c @@ -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 @@ -20,12 +20,14 @@ # 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 @@ { 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]));