diff options
Diffstat (limited to 'localedata/tst-mbswcs1.c')
-rw-r--r-- | localedata/tst-mbswcs1.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/localedata/tst-mbswcs1.c b/localedata/tst-mbswcs1.c index 14f1372253..83ece8d534 100644 --- a/localedata/tst-mbswcs1.c +++ b/localedata/tst-mbswcs1.c @@ -1,5 +1,5 @@ /* Test restarting behaviour of mbrtowc. - 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 Bruno Haible <haible@ilog.fr>. @@ -24,17 +24,18 @@ #define show(expr, nexp, wcexp) \ n = expr; \ - printf (#expr " -> %Zd", n); \ + printf (#expr " -> %zu", n); \ printf (", wc = %lu", (unsigned long int) wc); \ if (n != (size_t) nexp || wc != wcexp) \ { \ - printf (", expected %Zd and %lu", nexp, (unsigned long int) wcexp); \ + printf (", expected %zu and %lu", (size_t) nexp, \ + (unsigned long int) wcexp); \ result = 1; \ } \ putc ('\n', stdout) -int -main (void) +static int +do_test (void) { const unsigned char buf[6] = { 0x25, 0xe2, 0x82, 0xac, 0xce, 0xbb }; mbstate_t state; @@ -60,3 +61,6 @@ main (void) return result; } + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" |