This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


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

[RFA] lib/gdb.exp: check skip_cplus_tests target info


The attached patch skips C++ tests if [target_info exists
gdb,skip_cplus_tests] is true, allowing C++ tests to be skipped by
changing the board description file instead of adding board-specific
checks to gdb.exp.

There are no regressions on i686-pc-linux-gnu or sparc-sun-solaris2.5.1.
Okay to apply?

ChangeLog:

	* lib/gdb.exp (skip_cplus_tests): Check skip_cplus_tests
	in target_info.

Nick

Index: gdb/testsuite/lib/gdb.exp
===================================================================
diff -up gdb/testsuite/lib/gdb.exp gdb/testsuite/lib/gdb.exp
--- gdb/testsuite/lib/gdb.exp	Thu Nov 16 19:28:52 2000
+++ gdb/testsuite/lib/gdb.exp	Thu Nov 16 19:28:44 2000
@@ -881,6 +881,9 @@ proc skip_cplus_tests {} {
     if { [istarget "h8300-*-*"] } {
 	return 1
     }
+    if [target_info exists gdb,skip_cplus_tests] {
+	return 1
+    }
     return 0
 }
 

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