Use module 'progname' in some more tests.
authorBruno Haible <bruno@clisp.org>
Mon, 19 Jan 2009 23:14:31 +0000 (00:14 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 19 Jan 2009 23:14:31 +0000 (00:14 +0100)
19 files changed:
ChangeLog
modules/uniname/uniname-tests
modules/unistdio/u16-vsnprintf-tests
modules/unistdio/u16-vsprintf-tests
modules/unistdio/u32-vsnprintf-tests
modules/unistdio/u32-vsprintf-tests
modules/unistdio/u8-vsnprintf-tests
modules/unistdio/u8-vsprintf-tests
modules/unistdio/ulc-vsnprintf-tests
modules/unistdio/ulc-vsprintf-tests
tests/uniname/test-uninames.c
tests/unistdio/test-u16-vsnprintf1.c
tests/unistdio/test-u16-vsprintf1.c
tests/unistdio/test-u32-vsnprintf1.c
tests/unistdio/test-u32-vsprintf1.c
tests/unistdio/test-u8-vsnprintf1.c
tests/unistdio/test-u8-vsprintf1.c
tests/unistdio/test-ulc-vsnprintf1.c
tests/unistdio/test-ulc-vsprintf1.c

index 296d20d..020ab20 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,41 @@
+2009-01-19  Bruno Haible  <bruno@clisp.org>
+
+       * modules/uniname/uniname-tests (Depends-on): Add progname.
+       * tests/uniname/test-uninames.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
 2009-01-19  Eric Blake  <ebb9@byu.net>
 
        test-unistd: test previous patch
index cc4c23e..6fb0917 100644 (file)
@@ -5,6 +5,7 @@ tests/uniname/UnicodeDataNames.txt
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index fed4977..815c852 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-u16-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index 6be8c70..2a0f98a 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-u16-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index 2da0430..0692e96 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-u32-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index 40de870..b7dd115 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-u32-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index 4876ec9..55f61fc 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-u8-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index 6302560..4b262ce 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-u8-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index afeab7a..5f397f5 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-ulc-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index ce57bc8..a588379 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-ulc-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index 492e786..1408434 100644 (file)
@@ -1,5 +1,5 @@
 /* Test the Unicode character name functions.
-   Copyright (C) 2000-2003, 2005, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2000-2003, 2005, 2007, 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
@@ -22,6 +22,7 @@
 
 #include "xalloc.h"
 #include "uniname.h"
+#include "progname.h"
 
 /* The names according to the UnicodeData.txt file, modified to contain the
    Hangul syllable names, as described in the Unicode 3.0 book.  */
@@ -249,6 +250,8 @@ main (int argc, char *argv[])
 {
   int error = 0;
 
+  set_program_name (argv[0]);
+
   fill_names (argv[1]);
 
   error |= test_name_lookup ();
index c90338b..886e95b 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of u16_vsnprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-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
@@ -30,6 +30,7 @@
 
 #include "unistr.h"
 #include "xalloc.h"
+#include "progname.h"
 
 #define SIZEOF(array) (sizeof (array) / sizeof (array[0]))
 #define ASSERT(expr) \
@@ -75,6 +76,9 @@ test_vsnprintf ()
 int
 main (int argc, char *argv[])
 {
+  set_program_name (argv[0]);
+
   test_vsnprintf ();
+
   return 0;
 }
index 1a10dc8..e6b6eab 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of u16_vsprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-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
@@ -30,6 +30,7 @@
 
 #include "unistr.h"
 #include "xalloc.h"
+#include "progname.h"
 
 #define SIZEOF(array) (sizeof (array) / sizeof (array[0]))
 #define ASSERT(expr) \
@@ -75,6 +76,9 @@ test_vsprintf ()
 int
 main (int argc, char *argv[])
 {
+  set_program_name (argv[0]);
+
   test_vsprintf ();
+
   return 0;
 }
index 7acec96..d772708 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of u32_vsnprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-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
@@ -30,6 +30,7 @@
 
 #include "unistr.h"
 #include "xalloc.h"
+#include "progname.h"
 
 #define SIZEOF(array) (sizeof (array) / sizeof (array[0]))
 #define ASSERT(expr) \
@@ -75,6 +76,9 @@ test_vsnprintf ()
 int
 main (int argc, char *argv[])
 {
+  set_program_name (argv[0]);
+
   test_vsnprintf ();
+
   return 0;
 }
index aff240d..8398b27 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of u32_vsprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-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
@@ -30,6 +30,7 @@
 
 #include "unistr.h"
 #include "xalloc.h"
+#include "progname.h"
 
 #define SIZEOF(array) (sizeof (array) / sizeof (array[0]))
 #define ASSERT(expr) \
@@ -75,6 +76,9 @@ test_vsprintf ()
 int
 main (int argc, char *argv[])
 {
+  set_program_name (argv[0]);
+
   test_vsprintf ();
+
   return 0;
 }
index d6de03f..6dd7439 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of u8_vsnprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-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
@@ -30,6 +30,7 @@
 
 #include "unistr.h"
 #include "xalloc.h"
+#include "progname.h"
 
 #define SIZEOF(array) (sizeof (array) / sizeof (array[0]))
 #define ASSERT(expr) \
@@ -75,6 +76,9 @@ test_vsnprintf ()
 int
 main (int argc, char *argv[])
 {
+  set_program_name (argv[0]);
+
   test_vsnprintf ();
+
   return 0;
 }
index 1c702f6..9559df0 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of u8_vsprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-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
@@ -30,6 +30,7 @@
 
 #include "unistr.h"
 #include "xalloc.h"
+#include "progname.h"
 
 #define SIZEOF(array) (sizeof (array) / sizeof (array[0]))
 #define ASSERT(expr) \
@@ -75,6 +76,9 @@ test_vsprintf ()
 int
 main (int argc, char *argv[])
 {
+  set_program_name (argv[0]);
+
   test_vsprintf ();
+
   return 0;
 }
index 28edfb6..7701c21 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of ulc_vsnprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-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,7 @@
 #include <string.h>
 
 #include "xalloc.h"
+#include "progname.h"
 
 #define SIZEOF(array) (sizeof (array) / sizeof (array[0]))
 #define ASSERT(expr) \
@@ -68,6 +69,9 @@ test_vsnprintf ()
 int
 main (int argc, char *argv[])
 {
+  set_program_name (argv[0]);
+
   test_vsnprintf ();
+
   return 0;
 }
index 1cc2a56..76b85b2 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of ulc_vsprintf() function.
-   Copyright (C) 2007-2008 Free Software Foundation, Inc.
+   Copyright (C) 2007-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,7 @@
 #include <string.h>
 
 #include "xalloc.h"
+#include "progname.h"
 
 #define SIZEOF(array) (sizeof (array) / sizeof (array[0]))
 #define ASSERT(expr) \
@@ -68,6 +69,9 @@ test_vsprintf ()
 int
 main (int argc, char *argv[])
 {
+  set_program_name (argv[0]);
+
   test_vsprintf ();
+
   return 0;
 }