Mercurial > gnulib
changeset 29188:986c2d658c65
Tests for module 'strings'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 03 Dec 2007 12:53:14 +0100 |
parents | 7ddcc3879a1d |
children | aa7abd06f148 |
files | ChangeLog modules/strings-tests tests/test-strings.c |
diffstat | 3 files changed, 43 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Dec 03 12:50:59 2007 +0100 +++ b/ChangeLog Mon Dec 03 12:53:14 2007 +0100 @@ -1,5 +1,8 @@ 2007-12-02 Bruno Haible <bruno@clisp.org> + * modules/strings-tests: New file. + * tests/test-strings.c: New file. + Move declarations of str{,n}casecmp from <string.h> to <strings.h>. * lib/strings.in.h: New file. * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/strings-tests Mon Dec 03 12:53:14 2007 +0100 @@ -0,0 +1,13 @@ +Files: +tests/test-strings.c + +Depends-on: + +configure.ac: + +Makefile.am: +TESTS += test-strings +check_PROGRAMS += test-strings + +License: +LGPL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-strings.c Mon Dec 03 12:53:14 2007 +0100 @@ -0,0 +1,27 @@ +/* Test of <strings.h> substitute. + Copyright (C) 2007 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 + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +/* Written by Bruno Haible <bruno@clisp.org>, 2007. */ + +#include <config.h> + +#include <strings.h> + +int +main () +{ + return 0; +}