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 296d20d1af7a4e805c1378dd4ca4cc07db708965..020ab20f63f9c193844fd93671cb44a9b2c242b9 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 cc4c23e60cd12d790eb4040cf8414bb61298e442..6fb09173cb1fb53f555942b6719ec6a2ee1d5360 100644 (file)
@@ -5,6 +5,7 @@ tests/uniname/UnicodeDataNames.txt
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index fed497798ce8de5c1f8b029674bab05567c6ccb8..815c852533dc0f3ba10c59d432e050dc73f3906c 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-u16-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index 6be8c70f6e8033e7db878c34bbc2d460cda0b95c..2a0f98a8fb849c5a18510797e58877fd1cd76cfe 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-u16-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index 2da0430d3123c4d1d175ee869cdd2ebd0607025c..0692e9685f876b264689bb5a14995fe27dd34b73 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-u32-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index 40de870d1ea1a060a5aa4e6e7afab130a233e66c..b7dd115ced2bcba4e4205005f42e1c72710b10dd 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-u32-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index 4876ec93698ac345e01c481e26b2c05c5ed0685a..55f61fce92c9c6743a0fe5a97324b1eee8be276c 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-u8-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index 6302560623821257bfc39a451ddc7d6e89fafb4d..4b262cef49f997d25e756dc2545650522da46e0b 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-u8-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index afeab7ac7b6dc55fbc33702be1233f45b5893f74..5f397f57831f508d189fb3b38cf398952fe1f3d8 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-ulc-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index ce57bc892390ae911635cb6f7ac78a4b4fb3a0c9..a588379f59df69f484ed3a1142f8eeb876ef0858 100644 (file)
@@ -4,6 +4,7 @@ tests/unistdio/test-ulc-printf1.h
 
 Depends-on:
 xalloc
+progname
 
 configure.ac:
 
index 492e786db7a469e9f54208f55ef7b1433f9f97e7..1408434bc86b21df7045c8684e504af746c2a4d6 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 c90338bcd75114e98ea6fda4a2c03d64c03a716a..886e95b33ffe2102c7a6f44cb8eaadf6e03546f9 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 1a10dc86a2189bb6f2907f27874378b9cd662040..e6b6eab7ea7917df34a8a2827535e185c30e8bfa 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 7acec96f905e9dc3eb835efaa209e959f2eedc42..d772708119ce20959d4a8558af98a11e97ed577e 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 aff240d498e613b940b9faf8543de033656b0260..8398b274b14c1e3b5dbc76c26bdbd8ccb1f0fa9a 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 d6de03fc8ab03cf4b9083e3cbe5c8d8b71277924..6dd7439d4ce3344f007879bfc33b441aca252969 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 1c702f6b86aa2c589ee95bc2f93b07839889c6e0..9559df0c9d3384a8eaaa6286ed2a8d14e96ee1b0 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 28edfb6d9b293604fe164186720e0e203702b41a..7701c21e4bd9280135b7d81a8fb9fc8feeba1dbd 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 1cc2a56359265083ae5d126438aa78bb1ed25fe7..76b85b29f4fadfc4f0b4cd393327cf4d05699d77 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;
 }