X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-argp.c;h=25c927c900beb0345ed88ae523e75576a24b06e9;hb=192bd848d1106fc68d24e24e61534d6d9d49a335;hp=667ca9d66b06fca071d44d9165860931e8730159;hpb=6e714e7a1e47ada667d0a7db1cef42e9fe7d21f0;p=gnulib.git diff --git a/tests/test-argp.c b/tests/test-argp.c index 667ca9d66..25c927c90 100644 --- a/tests/test-argp.c +++ b/tests/test-argp.c @@ -1,5 +1,5 @@ /* 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 @@ -20,6 +20,8 @@ # include #endif +#include "argp.h" + #include #include #if HAVE_STRING_H @@ -29,7 +31,7 @@ # include #endif -#include "argp.h" +#include "progname.h" struct test_args { @@ -355,7 +357,9 @@ main (int argc, char **argv) { 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;