aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-08-30 18:46:56 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2000-08-30 18:46:56 +0000
commit9953d23bb4545e3bce1edb09813372415f88591a (patch)
treec1077f7e2f323032451def38ef24b2f2321f07f9 /gcc
parentc7cb8979c3d141630b6078a585d33c7aa34b7ae6 (diff)
downloadgcc-9953d23bb4545e3bce1edb09813372415f88591a.zip
gcc-9953d23bb4545e3bce1edb09813372415f88591a.tar.gz
gcc-9953d23bb4545e3bce1edb09813372415f88591a.tar.bz2
* lib/g++.exp: Support testing already-installed GCC.
From-SVN: r36063
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/lib/g++.exp5
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 3f5dedb..7a7ceed 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2000-08-30 Alexandre Oliva <aoliva@redhat.com>
+
+ * lib/g++.exp: Support testing already-installed GCC.
+
2000-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* wtr-label-1.c, wtr-suffix-1.c: New tests.
diff --git a/gcc/testsuite/lib/g++.exp b/gcc/testsuite/lib/g++.exp
index e6fe950..fde4577 100644
--- a/gcc/testsuite/lib/g++.exp
+++ b/gcc/testsuite/lib/g++.exp
@@ -88,7 +88,10 @@ proc g++_include_flags { args } {
} else {
set odir_v3 [lookfor_file ${gccpath} libstdc++-v3]
set sdir_v3 [lookfor_file ${srcdir} libstdc++-v3]
- append flags [exec ${odir_v3}/mkcheck 2 ${odir_v3} ${sdir_v3}]
+ if { ${odir_v3} != "" } {
+ append flags [exec ${odir_v3}/mkcheck 2 ${odir_v3} ${sdir_v3}]
+ }
+ # else we're probably testing an already-installed GCC.
}
return "$flags"