test-xalloc-die: avoid spurious failure due to libtool argv difference
[gnulib.git] / tests / test-xalloc-die.c
index 88461e8..4a03a0b 100644 (file)
 #include <config.h>
 
 #include "xalloc.h"
-
-char *program_name = "test-xalloc-die";
+#include "progname.h"
 
 int
-main (void)
+main (int argc, char **argv)
 {
+  set_program_name (argv[0]);
   xalloc_die ();
   return 0;
 }