diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-08-20 19:50:45 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-08-20 19:50:45 +0200 |
commit | 4dd9e35bfd35d3138bc44169baba098005bad51e (patch) | |
tree | a4939c43a9c3fe00eb27f023e14acc5e1fe8808c /libio/tst-widetext.c | |
parent | bd42a4599d1b6f77bcfe1e4f67b7cbd9e1cb2dfd (diff) | |
parent | f76453c31593957fec1a99b986bfa5506618b79c (diff) |
Merge commit 'refs/top-bases/t/bigmem' into t/bigmem
Diffstat (limited to 'libio/tst-widetext.c')
-rw-r--r-- | libio/tst-widetext.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libio/tst-widetext.c b/libio/tst-widetext.c index 179763e852..ca80407d7d 100644 --- a/libio/tst-widetext.c +++ b/libio/tst-widetext.c @@ -1,6 +1,6 @@ /* Test program for the wide character stream functions handling larger amounts of text. - Copyright (C) 2000-2014 Free Software Foundation, Inc. + Copyright (C) 2000-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>. @@ -31,8 +31,8 @@ #define SIZE 210000 -int -main (void) +static int +do_test (void) { char name[] = "/tmp/widetext.out.XXXXXX"; char mbbuf[SIZE]; @@ -291,7 +291,7 @@ main (void) { if (fgetws (wcp, &wc2buf[wcsize] - wcp + 1, fp) == NULL) { - printf ("%u: short read using fgetws (only %Zd of %Zd)\n", + printf ("%u: short read using fgetws (only %td of %Zd)\n", __LINE__, wcp - wc2buf, wcsize); status = 1; break; @@ -367,3 +367,6 @@ main (void) return status; } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" |