summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--modules/carray-list-tests1
-rw-r--r--modules/linkedhash-list-tests1
-rw-r--r--tests/test-carray_list.c8
-rw-r--r--tests/test-linkedhash_list.c8
5 files changed, 18 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 331b8226c1..91a2320178 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@
2007-03-02 Bruno Haible <bruno@clisp.org>
+ * modules/linkedhash-list-tests (Depends-on): Add progname.
+ * tests/test-linkedhash_list.c: Include progname.h.
+ (main): Call set_program_name.
+
* modules/carray-list-tests (Depends-on): Add progname.
* tests/test-carray_list.c: Include progname.h.
(main): Call set_program_name.
diff --git a/modules/carray-list-tests b/modules/carray-list-tests
index a4e373833a..82e7b7894b 100644
--- a/modules/carray-list-tests
+++ b/modules/carray-list-tests
@@ -3,6 +3,7 @@ tests/test-carray_list.c
Depends-on:
array-list
+progname
configure.ac:
diff --git a/modules/linkedhash-list-tests b/modules/linkedhash-list-tests
index ea3a478270..296a587847 100644
--- a/modules/linkedhash-list-tests
+++ b/modules/linkedhash-list-tests
@@ -3,6 +3,7 @@ tests/test-linkedhash_list.c
Depends-on:
array-list
+progname
configure.ac:
diff --git a/tests/test-carray_list.c b/tests/test-carray_list.c
index ac1da7af14..6026cd0634 100644
--- a/tests/test-carray_list.c
+++ b/tests/test-carray_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_carray_list.h"
+
#include <stdlib.h>
#include "gl_array_list.h"
-#include "gl_carray_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]));
diff --git a/tests/test-linkedhash_list.c b/tests/test-linkedhash_list.c
index bcbc9bddf3..f368b58df1 100644
--- a/tests/test-linkedhash_list.c
+++ b/tests/test-linkedhash_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_linkedhash_list.h"
+
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "gl_array_list.h"
-#include "gl_linkedhash_list.h"
+#include "progname.h"
static const char *objects[15] =
{
@@ -87,6 +89,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]));