mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
Convert tst-iconv3 to use test-skeleton.
This commit is contained in:
parent
fd1f2f1c3d
commit
ca681b7b7b
2 changed files with 10 additions and 2 deletions
|
@ -1,5 +1,10 @@
|
||||||
2015-02-25 Roland McGrath <roland@hack.frob.com>
|
2015-02-25 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* iconv/tst-iconv3.c (main): Converted to ...
|
||||||
|
(do_test): ... this.
|
||||||
|
(TEST_FUNCTION): New macro.
|
||||||
|
Include test-skeleton.c.
|
||||||
|
|
||||||
* iconv/tst-iconv5.c (testcode, number): Make variables static const.
|
* iconv/tst-iconv5.c (testcode, number): Make variables static const.
|
||||||
(convert): Make function static.
|
(convert): Make function static.
|
||||||
(test_unalign): Likewise. Add const to argument pointee types.
|
(test_unalign): Likewise. Add const to argument pointee types.
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
#define BUFSIZE 10000
|
#define BUFSIZE 10000
|
||||||
|
|
||||||
int
|
static int
|
||||||
main (int argc, char *argv[])
|
do_test (void)
|
||||||
{
|
{
|
||||||
char inbuf[BUFSIZE];
|
char inbuf[BUFSIZE];
|
||||||
wchar_t outbuf[BUFSIZE];
|
wchar_t outbuf[BUFSIZE];
|
||||||
|
@ -51,3 +51,6 @@ main (int argc, char *argv[])
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define TEST_FUNCTION do_test ()
|
||||||
|
#include "../test-skeleton.c"
|
||||||
|
|
Loading…
Add table
Reference in a new issue