libstdc++.exp (v3_target_compile_as_c): In installed-tree testing, use "remote_exec...
authorMark Mitchell <mark@codesourcery.com>
Mon, 7 May 2007 18:03:47 +0000 (18:03 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 7 May 2007 18:03:47 +0000 (18:03 +0000)
* testsuite/lib/libstdc++.exp (v3_target_compile_as_c): In
installed-tree testing, use "remote_exec host", not "remote_exec
exec".  Trip trailing newlines from output of -dumpversion and
-dumpmachine.

From-SVN: r124505

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/lib/libstdc++.exp

index 7a0a27cd685abd7624f83c4fd391590edc3240ce..d6b62caf64903ab22bb2c4a222356edd1f705885 100644 (file)
@@ -1,3 +1,10 @@
+2007-05-07  Mark Mitchell  <mark@codesourcery.com>
+
+       * testsuite/lib/libstdc++.exp (v3_target_compile_as_c): In
+       installed-tree testing, use "remote_exec host", not "remote_exec
+       exec".  Trip trailing newlines from output of -dumpversion and
+       -dumpmachine.
+
 2007-05-07  Benjamin Kosnik  <bkoz@redhat.com>
             Howard Hinnant  <hhinnant@apple.com>
 
index 70f2cb6f3d27837df12ab8d72a508ab2571d7e49..b990f46bed5885c8804a91ef28bde283419a2a86 100644 (file)
@@ -399,9 +399,10 @@ proc v3_target_compile_as_c { source dest type options } {
     # info.
     if { ![file exists $flags_file] } {
        set version [remote_exec host ${cc} -dumpversion]
-       set version [lindex $version 1]
-       set machine [remote_exec exec ${cc} -dumpmachine]
-       set machine [lindex $machine 1]
+       # Remove the trailing newline from the output.
+       set version [string trimright [lindex $version 1]]
+       set machine [remote_exec host ${cc} -dumpmachine]
+       set machine [string trimright [lindex $machine 1]]
        set comp_base_dir [remote_exec host ${cc} --print-prog-name=cc1]
        set comp_base_dir [lindex $comp_base_dir 1]
        set comp_base_dir [file dirname [file dirname [file dirname [file dirname [file dirname $comp_base_dir]]]]]