X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-xalloc-die.c;h=baf79242970461a4b5ab398864a33353828ce429;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=88461e84bb49b72a7f7f44c8ec7d54b62e69364e;hpb=a77f03bcadfda404d30cec6725e5d946e4babf05;p=gnulib.git diff --git a/tests/test-xalloc-die.c b/tests/test-xalloc-die.c index 88461e84b..baf792429 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-2014 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; }