diff options
author | Bruno Haible <bruno@clisp.org> | 2007-03-03 12:42:29 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-03-03 12:42:29 +0000 |
commit | 20af5d475a09dd19cb7be12d78f0599d7ba48e54 (patch) | |
tree | 3ea2366bdc6782ecd3a6151e5c82720c1e1a8961 /tests/test-linked_list.c | |
parent | f3b9015e2803b9835f997ea111f7f116acc57f6b (diff) | |
download | gnulib-20af5d475a09dd19cb7be12d78f0599d7ba48e54.tar.gz |
Avoid link error due to program_name.
Diffstat (limited to 'tests/test-linked_list.c')
-rw-r--r-- | tests/test-linked_list.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test-linked_list.c b/tests/test-linked_list.c index fb898b222d..bf5ed4b0b9 100644 --- a/tests/test-linked_list.c +++ b/tests/test-linked_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_linked_list.h" + #include <stdlib.h> #include "gl_array_list.h" -#include "gl_linked_list.h" +#include "progname.h" static const char *objects[15] = { @@ -60,6 +62,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])); |