Use module progname correctly in the tests that need it.
[gnulib.git] / tests / test-quotearg.c
index 04de223..f629060 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of quotearg family of functions.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008-2009 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
@@ -28,6 +28,8 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include "progname.h"
+
 #if ENABLE_NLS
 /* On Linux, gettext is optionally defined as a forwarding macro,
    which would cause syntax errors in our definition below.  But on
@@ -284,10 +286,12 @@ dcgettext (char const *d, char const *str, int c)
 #endif /* ENABLE_NLS */
 
 int
-main ()
+main (int argc, char *argv[])
 {
   int i;
 
+  set_program_name (argv[0]);
+
   /* This program is hard-wired to the C locale since it does not call
      setlocale.  */
   ASSERT (!isprint ('\033'));