X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-xalloc-die.c;h=d33e671998889761c94fb21e76c86adaf4ccdb14;hb=9f60473985e5f20c3efabadf2c1756b5ff560458;hp=88461e84bb49b72a7f7f44c8ec7d54b62e69364e;hpb=a77f03bcadfda404d30cec6725e5d946e4babf05;p=gnulib.git diff --git a/tests/test-xalloc-die.c b/tests/test-xalloc-die.c index 88461e84b..d33e67199 100644 --- a/tests/test-xalloc-die.c +++ b/tests/test-xalloc-die.c @@ -1,5 +1,5 @@ /* Test of xalloc_die() function. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2011 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 @@ -19,12 +19,12 @@ #include #include "xalloc.h" - -char *program_name = "test-xalloc-die"; +#include "progname.h" int -main (void) +main (int argc _GL_UNUSED, char **argv) { + set_program_name (argv[0]); xalloc_die (); return 0; }