From: Bruno Haible Date: Sat, 13 Mar 2010 15:20:41 +0000 (+0100) Subject: Test that gnulib does not break the standard C++ headers. X-Git-Tag: v0.1~4499 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=14051499d596955d8c5e558f78826df4d8945ed1;p=gnulib.git Test that gnulib does not break the standard C++ headers. --- diff --git a/ChangeLog b/ChangeLog index 050afafd7..4502de6fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,31 @@ 2010-03-13 Bruno Haible + 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 . + +2010-03-13 Bruno Haible + * gnulib-tool (func_usage): Clarify which options are available for --create-testdir and --create-megatestdir. diff --git a/modules/locale-tests b/modules/locale-tests index 5662a64f4..5fad3fb20 100644 --- a/modules/locale-tests +++ b/modules/locale-tests @@ -1,6 +1,7 @@ Files: tests/test-locale.c tests/test-locale-c++.cc +tests/test-locale-c++2.cc tests/signature.h Depends-on: @@ -16,5 +17,5 @@ check_PROGRAMS += test-locale 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 diff --git a/modules/math-tests b/modules/math-tests index 71f6d685b..5d89f28df 100644 --- a/modules/math-tests +++ b/modules/math-tests @@ -1,6 +1,7 @@ Files: tests/test-math.c tests/test-math-c++.cc +tests/test-math-c++2.cc tests/signature.h Depends-on: @@ -14,5 +15,5 @@ check_PROGRAMS += test-math 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 diff --git a/modules/signal-tests b/modules/signal-tests index f8c9f7ae5..9c79b0100 100644 --- a/modules/signal-tests +++ b/modules/signal-tests @@ -1,6 +1,7 @@ Files: tests/test-signal.c tests/test-signal-c++.cc +tests/test-signal-c++2.cc tests/signature.h Depends-on: @@ -14,6 +15,6 @@ check_PROGRAMS += test-signal 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 diff --git a/modules/stdio-tests b/modules/stdio-tests index 908f878ca..327780d66 100644 --- a/modules/stdio-tests +++ b/modules/stdio-tests @@ -1,6 +1,7 @@ Files: tests/test-stdio.c tests/test-stdio-c++.cc +tests/test-stdio-c++2.cc tests/signature.h Depends-on: @@ -15,6 +16,6 @@ check_PROGRAMS += test-stdio 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 diff --git a/modules/stdlib-tests b/modules/stdlib-tests index dc9ccde84..2673470bf 100644 --- a/modules/stdlib-tests +++ b/modules/stdlib-tests @@ -1,6 +1,7 @@ Files: tests/test-stdlib.c tests/test-stdlib-c++.cc +tests/test-stdlib-c++2.cc tests/signature.h Depends-on: @@ -15,6 +16,6 @@ check_PROGRAMS += test-stdlib 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 diff --git a/modules/string-tests b/modules/string-tests index 37bd2b343..1c9a1e1cc 100644 --- a/modules/string-tests +++ b/modules/string-tests @@ -1,6 +1,7 @@ Files: tests/test-string.c tests/test-string-c++.cc +tests/test-string-c++2.cc tests/signature.h Depends-on: @@ -15,6 +16,6 @@ check_PROGRAMS += test-string 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 diff --git a/modules/time-tests b/modules/time-tests index cb1d6a56d..4555357db 100644 --- a/modules/time-tests +++ b/modules/time-tests @@ -1,6 +1,7 @@ Files: tests/test-time.c tests/test-time-c++.cc +tests/test-time-c++2.cc tests/signature.h Depends-on: @@ -15,6 +16,6 @@ check_PROGRAMS += test-time 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 diff --git a/tests/test-locale-c++2.cc b/tests/test-locale-c++2.cc new file mode 100644 index 000000000..6c8c57cf6 --- /dev/null +++ b/tests/test-locale-c++2.cc @@ -0,0 +1,20 @@ +/* Test of 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 . */ + +#define GNULIB_NAMESPACE gnulib +#include + +#include diff --git a/tests/test-math-c++2.cc b/tests/test-math-c++2.cc new file mode 100644 index 000000000..efc192f14 --- /dev/null +++ b/tests/test-math-c++2.cc @@ -0,0 +1,20 @@ +/* Test of 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 . */ + +#define GNULIB_NAMESPACE gnulib +#include + +#include diff --git a/tests/test-signal-c++2.cc b/tests/test-signal-c++2.cc new file mode 100644 index 000000000..0ec80150f --- /dev/null +++ b/tests/test-signal-c++2.cc @@ -0,0 +1,20 @@ +/* Test of 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 . */ + +#define GNULIB_NAMESPACE gnulib +#include + +#include diff --git a/tests/test-stdio-c++2.cc b/tests/test-stdio-c++2.cc new file mode 100644 index 000000000..a0f819e70 --- /dev/null +++ b/tests/test-stdio-c++2.cc @@ -0,0 +1,20 @@ +/* Test of 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 . */ + +#define GNULIB_NAMESPACE gnulib +#include + +#include diff --git a/tests/test-stdlib-c++2.cc b/tests/test-stdlib-c++2.cc new file mode 100644 index 000000000..9967c1377 --- /dev/null +++ b/tests/test-stdlib-c++2.cc @@ -0,0 +1,20 @@ +/* Test of 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 . */ + +#define GNULIB_NAMESPACE gnulib +#include + +#include diff --git a/tests/test-string-c++2.cc b/tests/test-string-c++2.cc new file mode 100644 index 000000000..aebb6c61b --- /dev/null +++ b/tests/test-string-c++2.cc @@ -0,0 +1,20 @@ +/* Test of 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 . */ + +#define GNULIB_NAMESPACE gnulib +#include + +#include diff --git a/tests/test-time-c++2.cc b/tests/test-time-c++2.cc new file mode 100644 index 000000000..d7b2bdd11 --- /dev/null +++ b/tests/test-time-c++2.cc @@ -0,0 +1,20 @@ +/* Test of 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 . */ + +#define GNULIB_NAMESPACE gnulib +#include + +#include