This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] lib/gdb.exp: check skip_cplus_tests target info
- To: gdb-patches at sources dot redhat dot com
- Subject: [RFA] lib/gdb.exp: check skip_cplus_tests target info
- From: Nick Duffek <nsd at redhat dot com>
- Date: Fri, 17 Nov 2000 01:39:25 -0500
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
}