This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libstdc++ remote host testing fix
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Wed, 2 Sep 2009 15:34:42 +0000 (UTC)
- Subject: libstdc++ remote host testing fix
This patch fixes problems with remote-host libstdc++ testing. In the
remote-host case, libstdc++_init copies headers under util/ to the
remote host, but it was missing .h and .tcc files under
regression/rand/*, so causing some testcases relying on those headers
to fail. This patch expands the globs in question to cover all the
suffixes used at all the directory levels used (rather than limiting
it to suffixes used at a particular level and so requiring changes if
a header with an existing suffix is added at a new level); it removes
a duplicate reference to "${srcdir}/util/*/*.hpp" in the process. OK
to commit?
2009-09-02 Joseph Myers <joseph@codesourcery.com>
* testsuite/lib/libstdc++.exp (libstdc++_init): Copy .tcc files
under util/ to remote host. Copy .h and .hpp files at more levels
under util/ to remote host.
Index: testsuite/lib/libstdc++.exp
===================================================================
--- testsuite/lib/libstdc++.exp (revision 151319)
+++ testsuite/lib/libstdc++.exp (working copy)
@@ -204,14 +204,23 @@
# directory, and then add that to the search path.
foreach src [glob "${srcdir}/util/*.h" \
"${srcdir}/util/*.cc" \
- "${srcdir}/util/*/*.hpp" \
+ "${srcdir}/util/*.tcc" \
+ "${srcdir}/util/*.hpp" \
+ "${srcdir}/util/*/*.h" \
"${srcdir}/util/*/*.cc" \
+ "${srcdir}/util/*/*.tcc" \
"${srcdir}/util/*/*.hpp" \
+ "${srcdir}/util/*/*/*.h" \
"${srcdir}/util/*/*/*.cc" \
+ "${srcdir}/util/*/*/*.tcc" \
"${srcdir}/util/*/*/*.hpp" \
+ "${srcdir}/util/*/*/*/*.h" \
"${srcdir}/util/*/*/*/*.cc" \
+ "${srcdir}/util/*/*/*/*.tcc" \
"${srcdir}/util/*/*/*/*.hpp" \
+ "${srcdir}/util/*/*/*/*/*.h" \
"${srcdir}/util/*/*/*/*/*.cc" \
+ "${srcdir}/util/*/*/*/*/*.tcc" \
"${srcdir}/util/*/*/*/*/*.hpp" ] {
# Remove everything up to "util/..."
set dst [string range $src [string length "${srcdir}/"] end]
--
Joseph S. Myers
joseph@codesourcery.com