+2009-01-18 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-avltree_list.c (main): Call set_program_name.
+ * tests/test-avltree_oset.c (main): Likewise.
+ * tests/test-obstack-printf.c: Include progname.h.
+ (main): Call set_program_name.
+ * tests/test-quotearg.c: Include progname.h.
+ (main): Call set_program_name.
+ * tests/test-xmemdup0.c: Include progname.h.
+ (main): Call set_program_name.
+
2009-01-18 Bruno Haible <bruno@clisp.org>
New module 'alphasort'.
/* Test of sequential list data type implementation.
- Copyright (C) 2006-2008 Free Software Foundation, Inc.
+ Copyright (C) 2006-2009 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
{
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]));
/* Test of ordered set data type implementation.
- Copyright (C) 2006-2008 Free Software Foundation, Inc.
+ Copyright (C) 2006-2009 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
{
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]));
/* Test of obstack_printf() and obstack_vprintf() functions.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008-2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <stdlib.h>
#include <string.h>
+#include "progname.h"
+
#define ASSERT(expr) \
do \
{ \
int
main (int argc, char *argv[])
{
+ set_program_name (argv[0]);
+
test_obstack_vprintf ();
test_obstack_printf ();
return 0;
/* Test of quotearg family of functions.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008-2009 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <stdlib.h>
#include <string.h>
+#include "progname.h"
+
#if ENABLE_NLS
/* On Linux, gettext is optionally defined as a forwarding macro,
which would cause syntax errors in our definition below. But on
#endif /* ENABLE_NLS */
int
-main ()
+main (int argc, char *argv[])
{
int i;
+ set_program_name (argv[0]);
+
/* This program is hard-wired to the C locale since it does not call
setlocale. */
ASSERT (!isprint ('\033'));
/* Test of xmemdup0() function.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008-2009 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <stdlib.h>
#include <string.h>
+#include "progname.h"
+
#define ASSERT(expr) \
do \
{ \
char buffer[10] = { 'a', 'b', 'c', 'd', '\0',
'f', 'g', 'h', 'i', 'j' };
+ set_program_name (argv[0]);
+
/* Empty string. */
{
char *result = xmemdup0 (NULL, 0);