+2010-03-13 Bruno Haible <bruno@clisp.org>
+
+ Test that gnulib does not break the standard C++ headers.
+ * tests/test-locale-c++2.cc: New file.
+ * modules/locale-tests (Files): Add it.
+ (Makefile.am): Compile it for test-locale-c++.
+ * tests/test-math-c++2.cc: New file.
+ * modules/math-tests (Files): Add it.
+ (Makefile.am): Compile it for test-math-c++.
+ * tests/test-signal-c++2.cc: New file.
+ * modules/signal-tests (Files): Add it.
+ (Makefile.am): Compile it for test-signal-c++.
+ * tests/test-stdio-c++2.cc: New file.
+ * modules/stdio-tests (Files): Add it.
+ (Makefile.am): Compile it for test-stdio-c++.
+ * tests/test-stdlib-c++2.cc: New file.
+ * modules/stdlib-tests (Files): Add it.
+ (Makefile.am): Compile it for test-stdlib-c++.
+ * tests/test-string-c++2.cc: New file.
+ * modules/string-tests (Files): Add it.
+ (Makefile.am): Compile it for test-string-c++.
+ * tests/test-time-c++2.cc: New file.
+ * modules/time-tests (Files): Add it.
+ (Makefile.am): Compile it for test-time-c++.
+ Reported by John W. Eaton <jwe@gnu.org>.
+
2010-03-13 Bruno Haible <bruno@clisp.org>
* gnulib-tool (func_usage): Clarify which options are available for
Files:
tests/test-locale.c
tests/test-locale-c++.cc
+tests/test-locale-c++2.cc
tests/signature.h
Depends-on:
if ANSICXX
TESTS += test-locale-c++
check_PROGRAMS += test-locale-c++
-test_locale_c___SOURCES = test-locale-c++.cc
+test_locale_c___SOURCES = test-locale-c++.cc test-locale-c++2.cc
endif
Files:
tests/test-math.c
tests/test-math-c++.cc
+tests/test-math-c++2.cc
tests/signature.h
Depends-on:
if ANSICXX
TESTS += test-math-c++
check_PROGRAMS += test-math-c++
-test_math_c___SOURCES = test-math-c++.cc
+test_math_c___SOURCES = test-math-c++.cc test-math-c++2.cc
endif
Files:
tests/test-signal.c
tests/test-signal-c++.cc
+tests/test-signal-c++2.cc
tests/signature.h
Depends-on:
if ANSICXX
TESTS += test-signal-c++
check_PROGRAMS += test-signal-c++
-test_signal_c___SOURCES = test-signal-c++.cc
+test_signal_c___SOURCES = test-signal-c++.cc test-signal-c++2.cc
test_signal_c___LDADD = $(LDADD) $(LIBINTL)
endif
Files:
tests/test-stdio.c
tests/test-stdio-c++.cc
+tests/test-stdio-c++2.cc
tests/signature.h
Depends-on:
if ANSICXX
TESTS += test-stdio-c++
check_PROGRAMS += test-stdio-c++
-test_stdio_c___SOURCES = test-stdio-c++.cc
+test_stdio_c___SOURCES = test-stdio-c++.cc test-stdio-c++2.cc
test_stdio_c___LDADD = $(LDADD) $(LIBINTL)
endif
Files:
tests/test-stdlib.c
tests/test-stdlib-c++.cc
+tests/test-stdlib-c++2.cc
tests/signature.h
Depends-on:
if ANSICXX
TESTS += test-stdlib-c++
check_PROGRAMS += test-stdlib-c++
-test_stdlib_c___SOURCES = test-stdlib-c++.cc
+test_stdlib_c___SOURCES = test-stdlib-c++.cc test-stdlib-c++2.cc
test_stdlib_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME)
endif
Files:
tests/test-string.c
tests/test-string-c++.cc
+tests/test-string-c++2.cc
tests/signature.h
Depends-on:
if ANSICXX
TESTS += test-string-c++
check_PROGRAMS += test-string-c++
-test_string_c___SOURCES = test-string-c++.cc
+test_string_c___SOURCES = test-string-c++.cc test-string-c++2.cc
test_string_c___LDADD = $(LDADD) $(LIBINTL)
endif
Files:
tests/test-time.c
tests/test-time-c++.cc
+tests/test-time-c++2.cc
tests/signature.h
Depends-on:
if ANSICXX
TESTS += test-time-c++
check_PROGRAMS += test-time-c++
-test_time_c___SOURCES = test-time-c++.cc
+test_time_c___SOURCES = test-time-c++.cc test-time-c++2.cc
test_time_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
endif
--- /dev/null
+/* Test of <locale.h> substitute in C++ mode.
+ Copyright (C) 2010 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/>. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <clocale>
--- /dev/null
+/* Test of <math.h> substitute in C++ mode.
+ Copyright (C) 2010 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/>. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cmath>
--- /dev/null
+/* Test of <signal.h> substitute in C++ mode.
+ Copyright (C) 2010 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/>. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <csignal>
--- /dev/null
+/* Test of <stdio.h> substitute in C++ mode.
+ Copyright (C) 2010 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/>. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cstdio>
--- /dev/null
+/* Test of <stdlib.h> substitute in C++ mode.
+ Copyright (C) 2010 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/>. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cstdlib>
--- /dev/null
+/* Test of <string.h> substitute in C++ mode.
+ Copyright (C) 2010 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/>. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <cstring>
--- /dev/null
+/* Test of <time.h> substitute in C++ mode.
+ Copyright (C) 2010 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/>. */
+
+#define GNULIB_NAMESPACE gnulib
+#include <config.h>
+
+#include <ctime>