summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-01-20 00:14:31 +0100
committerBruno Haible <bruno@clisp.org>2009-01-20 00:14:31 +0100
commitfe7f458428a6f0febc18455ea08736b02f45f1d0 (patch)
treed8c822d42a464b1f06a27f9076eb846ca42244c4
parent13a620eb128306ec69602f695d3f874cfeec25a7 (diff)
downloadgnulib-fe7f458428a6f0febc18455ea08736b02f45f1d0.tar.gz
Use module 'progname' in some more tests.
-rw-r--r--ChangeLog38
-rw-r--r--modules/uniname/uniname-tests1
-rw-r--r--modules/unistdio/u16-vsnprintf-tests1
-rw-r--r--modules/unistdio/u16-vsprintf-tests1
-rw-r--r--modules/unistdio/u32-vsnprintf-tests1
-rw-r--r--modules/unistdio/u32-vsprintf-tests1
-rw-r--r--modules/unistdio/u8-vsnprintf-tests1
-rw-r--r--modules/unistdio/u8-vsprintf-tests1
-rw-r--r--modules/unistdio/ulc-vsnprintf-tests1
-rw-r--r--modules/unistdio/ulc-vsprintf-tests1
-rw-r--r--tests/uniname/test-uninames.c5
-rw-r--r--tests/unistdio/test-u16-vsnprintf1.c6
-rw-r--r--tests/unistdio/test-u16-vsprintf1.c6
-rw-r--r--tests/unistdio/test-u32-vsnprintf1.c6
-rw-r--r--tests/unistdio/test-u32-vsprintf1.c6
-rw-r--r--tests/unistdio/test-u8-vsnprintf1.c6
-rw-r--r--tests/unistdio/test-u8-vsprintf1.c6
-rw-r--r--tests/unistdio/test-ulc-vsnprintf1.c6
-rw-r--r--tests/unistdio/test-ulc-vsprintf1.c6
19 files changed, 91 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 296d20d1af..020ab20f63 100644
--- 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
diff --git a/modules/uniname/uniname-tests b/modules/uniname/uniname-tests
index cc4c23e60c..6fb09173cb 100644
--- a/modules/uniname/uniname-tests
+++ b/modules/uniname/uniname-tests
@@ -5,6 +5,7 @@ tests/uniname/UnicodeDataNames.txt
Depends-on:
xalloc
+progname
configure.ac:
diff --git a/modules/unistdio/u16-vsnprintf-tests b/modules/unistdio/u16-vsnprintf-tests
index fed497798c..815c852533 100644
--- a/modules/unistdio/u16-vsnprintf-tests
+++ b/modules/unistdio/u16-vsnprintf-tests
@@ -4,6 +4,7 @@ tests/unistdio/test-u16-printf1.h
Depends-on:
xalloc
+progname
configure.ac:
diff --git a/modules/unistdio/u16-vsprintf-tests b/modules/unistdio/u16-vsprintf-tests
index 6be8c70f6e..2a0f98a8fb 100644
--- a/modules/unistdio/u16-vsprintf-tests
+++ b/modules/unistdio/u16-vsprintf-tests
@@ -4,6 +4,7 @@ tests/unistdio/test-u16-printf1.h
Depends-on:
xalloc
+progname
configure.ac:
diff --git a/modules/unistdio/u32-vsnprintf-tests b/modules/unistdio/u32-vsnprintf-tests
index 2da0430d31..0692e9685f 100644
--- a/modules/unistdio/u32-vsnprintf-tests
+++ b/modules/unistdio/u32-vsnprintf-tests
@@ -4,6 +4,7 @@ tests/unistdio/test-u32-printf1.h
Depends-on:
xalloc
+progname
configure.ac:
diff --git a/modules/unistdio/u32-vsprintf-tests b/modules/unistdio/u32-vsprintf-tests
index 40de870d1e..b7dd115ced 100644
--- a/modules/unistdio/u32-vsprintf-tests
+++ b/modules/unistdio/u32-vsprintf-tests
@@ -4,6 +4,7 @@ tests/unistdio/test-u32-printf1.h
Depends-on:
xalloc
+progname
configure.ac:
diff --git a/modules/unistdio/u8-vsnprintf-tests b/modules/unistdio/u8-vsnprintf-tests
index 4876ec9369..55f61fce92 100644
--- a/modules/unistdio/u8-vsnprintf-tests
+++ b/modules/unistdio/u8-vsnprintf-tests
@@ -4,6 +4,7 @@ tests/unistdio/test-u8-printf1.h
Depends-on:
xalloc
+progname
configure.ac:
diff --git a/modules/unistdio/u8-vsprintf-tests b/modules/unistdio/u8-vsprintf-tests
index 6302560623..4b262cef49 100644
--- a/modules/unistdio/u8-vsprintf-tests
+++ b/modules/unistdio/u8-vsprintf-tests
@@ -4,6 +4,7 @@ tests/unistdio/test-u8-printf1.h
Depends-on:
xalloc
+progname
configure.ac:
diff --git a/modules/unistdio/ulc-vsnprintf-tests b/modules/unistdio/ulc-vsnprintf-tests
index afeab7ac7b..5f397f5783 100644
--- a/modules/unistdio/ulc-vsnprintf-tests
+++ b/modules/unistdio/ulc-vsnprintf-tests
@@ -4,6 +4,7 @@ tests/unistdio/test-ulc-printf1.h
Depends-on:
xalloc
+progname
configure.ac:
diff --git a/modules/unistdio/ulc-vsprintf-tests b/modules/unistdio/ulc-vsprintf-tests
index ce57bc8923..a588379f59 100644
--- a/modules/unistdio/ulc-vsprintf-tests
+++ b/modules/unistdio/ulc-vsprintf-tests
@@ -4,6 +4,7 @@ tests/unistdio/test-ulc-printf1.h
Depends-on:
xalloc
+progname
configure.ac:
diff --git a/tests/uniname/test-uninames.c b/tests/uniname/test-uninames.c
index 492e786db7..1408434bc8 100644
--- a/tests/uniname/test-uninames.c
+++ b/tests/uniname/test-uninames.c
@@ -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 ();
diff --git a/tests/unistdio/test-u16-vsnprintf1.c b/tests/unistdio/test-u16-vsnprintf1.c
index c90338bcd7..886e95b33f 100644
--- a/tests/unistdio/test-u16-vsnprintf1.c
+++ b/tests/unistdio/test-u16-vsnprintf1.c
@@ -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;
}
diff --git a/tests/unistdio/test-u16-vsprintf1.c b/tests/unistdio/test-u16-vsprintf1.c
index 1a10dc86a2..e6b6eab7ea 100644
--- a/tests/unistdio/test-u16-vsprintf1.c
+++ b/tests/unistdio/test-u16-vsprintf1.c
@@ -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;
}
diff --git a/tests/unistdio/test-u32-vsnprintf1.c b/tests/unistdio/test-u32-vsnprintf1.c
index 7acec96f90..d772708119 100644
--- a/tests/unistdio/test-u32-vsnprintf1.c
+++ b/tests/unistdio/test-u32-vsnprintf1.c
@@ -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;
}
diff --git a/tests/unistdio/test-u32-vsprintf1.c b/tests/unistdio/test-u32-vsprintf1.c
index aff240d498..8398b274b1 100644
--- a/tests/unistdio/test-u32-vsprintf1.c
+++ b/tests/unistdio/test-u32-vsprintf1.c
@@ -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;
}
diff --git a/tests/unistdio/test-u8-vsnprintf1.c b/tests/unistdio/test-u8-vsnprintf1.c
index d6de03fc8a..6dd7439d4c 100644
--- a/tests/unistdio/test-u8-vsnprintf1.c
+++ b/tests/unistdio/test-u8-vsnprintf1.c
@@ -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;
}
diff --git a/tests/unistdio/test-u8-vsprintf1.c b/tests/unistdio/test-u8-vsprintf1.c
index 1c702f6b86..9559df0c9d 100644
--- a/tests/unistdio/test-u8-vsprintf1.c
+++ b/tests/unistdio/test-u8-vsprintf1.c
@@ -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;
}
diff --git a/tests/unistdio/test-ulc-vsnprintf1.c b/tests/unistdio/test-ulc-vsnprintf1.c
index 28edfb6d9b..7701c21e4b 100644
--- a/tests/unistdio/test-ulc-vsnprintf1.c
+++ b/tests/unistdio/test-ulc-vsnprintf1.c
@@ -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;
}
diff --git a/tests/unistdio/test-ulc-vsprintf1.c b/tests/unistdio/test-ulc-vsprintf1.c
index 1cc2a56359..76b85b29f4 100644
--- a/tests/unistdio/test-ulc-vsprintf1.c
+++ b/tests/unistdio/test-ulc-vsprintf1.c
@@ -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;
}