X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-mbmemcasecmp.c;h=17867ac283c89cc8446047fca0a6a6d3bf2c0693;hb=c9451e3bdc651a742f06b46a450497e59bb5e006;hp=6044d4e634c63e66d91b0af746b26aef06c54c10;hpb=9741018edcfb44945f5949c7019b5db4d207f980;p=gnulib.git diff --git a/tests/test-mbmemcasecmp.c b/tests/test-mbmemcasecmp.c index 6044d4e63..17867ac28 100644 --- a/tests/test-mbmemcasecmp.c +++ b/tests/test-mbmemcasecmp.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" @@ -54,19 +41,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 (mbmemcasecmp, true); - return 0; + /* Locale encoding is ISO-8859-1 or ISO-8859-15. */ + test_iso_8859_1 (mbmemcasecmp, true); + return 0; case '2': - /* Locale encoding is UTF-8, locale is not Turkish. */ - test_utf_8 (mbmemcasecmp, false); - return 0; + /* Locale encoding is UTF-8, locale is not Turkish. */ + test_utf_8 (mbmemcasecmp, false); + return 0; case '3': - /* Locale encoding is UTF-8, locale is Turkish. */ - test_utf_8 (mbmemcasecmp, true); - return 0; + /* Locale encoding is UTF-8, locale is Turkish. */ + test_utf_8 (mbmemcasecmp, true); + return 0; } return 1;