This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Testing an already-installed g++


The auto-detection of libstdc++ version in the C++ testing framework
breaks when testing a pre-installed g++.  Here's a patch that fixes
this.  Ok to install?

Index: gcc/testsuite/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* lib/g++.exp: Support testing already-installed GCC.

Index: gcc/testsuite/lib/g++.exp
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/lib/g++.exp,v
retrieving revision 1.10
diff -u -p -r1.10 g++.exp
--- gcc/testsuite/lib/g++.exp	2000/06/27 20:40:05	1.10
+++ gcc/testsuite/lib/g++.exp	2000/08/26 21:17:00
@@ -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"

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]