X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-mbmemcasecoll.c;h=5a91d2ff3dfa10a6dc4e44730deb017dfc735f2d;hb=4c2f17d2a671eb6fc6ae318647040598f67705cc;hp=94c0a4896c6470dd7ecc870600ed29045ca46bd0;hpb=85996e81dc648d083f9621b95cb1d77f34132f37;p=gnulib.git diff --git a/tests/test-mbmemcasecoll.c b/tests/test-mbmemcasecoll.c index 94c0a4896..5a91d2ff3 100644 --- a/tests/test-mbmemcasecoll.c +++ b/tests/test-mbmemcasecoll.c @@ -1,5 +1,5 @@ /* Test of case-insensitive memory area comparison function. - Copyright (C) 2007-2009 Free Software Foundation, Inc. + Copyright (C) 2007-2013 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,22 +22,9 @@ #include #include -#include -#include #include -#define SIZEOF(array) (sizeof (array) / sizeof (array[0])) -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" #include "test-mbmemcasecmp.h" @@ -60,19 +47,19 @@ main (int argc, char *argv[]) switch (argv[1][0]) { case '1': - /* Locale encoding is ISO-8859-1 or ISO-8859-15. */ - test_iso_8859_1 (mbmemcasecoll_hard, false); - return 0; + /* Locale encoding is ISO-8859-1 or ISO-8859-15. */ + test_iso_8859_1 (mbmemcasecoll_hard, false); + return 0; case '2': - /* Locale encoding is UTF-8, locale is not Turkish. */ - test_utf_8 (mbmemcasecoll_hard, false); - return 0; + /* Locale encoding is UTF-8, locale is not Turkish. */ + test_utf_8 (mbmemcasecoll_hard, false); + return 0; case '3': - /* Locale encoding is UTF-8, locale is Turkish. */ - test_utf_8 (mbmemcasecoll_hard, true); - return 0; + /* Locale encoding is UTF-8, locale is Turkish. */ + test_utf_8 (mbmemcasecoll_hard, true); + return 0; } return 1;