Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Convert tst-iconv3 to use test-skeleton.
  • Loading branch information
Roland McGrath committed Feb 26, 2015
1 parent fd1f2f1 commit ca681b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,5 +1,10 @@
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.
(convert): Make function static.
(test_unalign): Likewise. Add const to argument pointee types.
Expand Down
7 changes: 5 additions & 2 deletions iconv/tst-iconv3.c
Expand Up @@ -7,8 +7,8 @@

#define BUFSIZE 10000

int
main (int argc, char *argv[])
static int
do_test (void)
{
char inbuf[BUFSIZE];
wchar_t outbuf[BUFSIZE];
Expand Down Expand Up @@ -51,3 +51,6 @@ main (int argc, char *argv[])

return result;
}

#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"

0 comments on commit ca681b7

Please sign in to comment.