+2007-03-02 Bruno Haible <bruno@clisp.org>
+
+ * modules/argp-tests (Depends-on): Add progname.
+ * tests/test-argp.c: Include argp.h first. Include progname.h.
+ (main): Call set_program_name.
+
2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
* doc/gnulib-tool.texi (Initial import): Reword description of
/* Test suite for argp.
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007 Free Software Foundation, Inc.
This file is part of the GNUlib Library.
This program is free software; you can redistribute it and/or modify
# include <config.h>
#endif
+#include "argp.h"
+
#include <stdio.h>
#include <stdlib.h>
#if HAVE_STRING_H
# include <strings.h>
#endif
-#include "argp.h"
+#include "progname.h"
struct test_args
{
{
struct argp_child argp_children[3];
test_fp *fun;
-
+
+ set_program_name (argv[0]);
+
argp_children[0] = group1_child;
argp_children[1] = group2_child;
argp_children[2].argp = NULL;