Tests for module 'strings'.
authorBruno Haible <bruno@clisp.org>
Mon, 3 Dec 2007 11:53:14 +0000 (12:53 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 3 Dec 2007 11:53:14 +0000 (12:53 +0100)
ChangeLog
modules/strings-tests [new file with mode: 0644]
tests/test-strings.c [new file with mode: 0644]

index b6747ee..42cb969 100644 (file)
--- 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.
diff --git a/modules/strings-tests b/modules/strings-tests
new file mode 100644 (file)
index 0000000..9fffe84
--- /dev/null
@@ -0,0 +1,13 @@
+Files:
+tests/test-strings.c
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-strings
+check_PROGRAMS += test-strings
+
+License:
+LGPL
diff --git a/tests/test-strings.c b/tests/test-strings.c
new file mode 100644 (file)
index 0000000..81e7362
--- /dev/null
@@ -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;
+}