summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-07 18:03:47 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-07 18:03:47 +0000
commit61bacda0edd289b0700494388afd5d83d9205409 (patch)
treed1ae4e22cc289695cfea879a8189f5a7a4bcb1f2 /libstdc++-v3/testsuite
parentb715888442912dde83d607e9a1fb9eceb0db4d49 (diff)
downloadgcc-61bacda0edd289b0700494388afd5d83d9205409.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124505 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r--libstdc++-v3/testsuite/lib/libstdc++.exp7
1 files changed, 4 insertions, 3 deletions
diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp
index 70f2cb6f3d2..b990f46bed5 100644
--- a/libstdc++-v3/testsuite/lib/libstdc++.exp
+++ b/libstdc++-v3/testsuite/lib/libstdc++.exp
@@ -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]]]]]