Mercurial > hg > octave-nkf > gnulib-hg
changeset 9497:e5ba9ffae779
Tests for module 'strings'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 03 Dec 2007 12:53:14 +0100 |
parents | d7da1f241448 |
children | a2c450a3023c |
files | ChangeLog modules/strings-tests tests/test-strings.c |
diffstat | 3 files changed, 43 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -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.
new file mode 100644 --- /dev/null +++ b/modules/strings-tests @@ -0,0 +1,13 @@ +Files: +tests/test-strings.c + +Depends-on: + +configure.ac: + +Makefile.am: +TESTS += test-strings +check_PROGRAMS += test-strings + +License: +LGPL
new file mode 100644 --- /dev/null +++ b/tests/test-strings.c @@ -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; +}