aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-06-18 14:12:09 +0000
committerTom Tromey <tromey@redhat.com>2013-06-18 14:12:09 +0000
commite379b391417a10ddedd68ed23a2858e87a0a6792 (patch)
tree13b45a03c0ee585067edf733ce380643cc8de8b6 /gdb/testsuite/gdb.gdb
parent9f9b731fe3dffcc4da98d2599e5d83e0799e2d23 (diff)
downloadgdb-e379b391417a10ddedd68ed23a2858e87a0a6792.zip
gdb-e379b391417a10ddedd68ed23a2858e87a0a6792.tar.gz
gdb-e379b391417a10ddedd68ed23a2858e87a0a6792.tar.bz2
fix python-selftest.exp failure with gdbserver
python-selftest.exp fails with an error when using the native-gdbserver.exp board. The bug is that the selftest code doesn't work in this situation. It never has. This patch fixes the problem by pushing the needed check into do_self_tests. This helps prevent the problem in the future. * lib/selftest-support.exp (do_self_tests): Reject remote or non-native targets. * gdb.gdb/complaints.exp: Remove check. * gdb.gdb/observer.exp: Remove check. * gdb.gdb/xfullpath.exp: Remove check. * gdb.gdb/complaints.exp: Remove check.
Diffstat (limited to 'gdb/testsuite/gdb.gdb')
-rw-r--r--gdb/testsuite/gdb.gdb/complaints.exp5
-rw-r--r--gdb/testsuite/gdb.gdb/observer.exp5
-rw-r--r--gdb/testsuite/gdb.gdb/xfullpath.exp5
3 files changed, 0 insertions, 15 deletions
diff --git a/gdb/testsuite/gdb.gdb/complaints.exp b/gdb/testsuite/gdb.gdb/complaints.exp
index 932dfd5..e5f6e4a 100644
--- a/gdb/testsuite/gdb.gdb/complaints.exp
+++ b/gdb/testsuite/gdb.gdb/complaints.exp
@@ -19,11 +19,6 @@
load_lib selftest-support.exp
-# are we on a target board
-if { [is_remote target] || ![isnative] } then {
- return
-}
-
if [target_info exists gdb,noinferiorio] {
verbose "Skipping because of no inferiorio capabilities."
return
diff --git a/gdb/testsuite/gdb.gdb/observer.exp b/gdb/testsuite/gdb.gdb/observer.exp
index 32030d8..b70c2b1 100644
--- a/gdb/testsuite/gdb.gdb/observer.exp
+++ b/gdb/testsuite/gdb.gdb/observer.exp
@@ -18,11 +18,6 @@
load_lib selftest-support.exp
-# are we on a target board
-if { [is_remote target] || ![isnative] } then {
- return
-}
-
proc attach_first_observer { message } {
gdb_test_no_output "set \$first_obs = observer_attach_test_notification (&observer_test_first_notification_function)" \
"$message; attach first observer"
diff --git a/gdb/testsuite/gdb.gdb/xfullpath.exp b/gdb/testsuite/gdb.gdb/xfullpath.exp
index 5bc01c6..d758a18 100644
--- a/gdb/testsuite/gdb.gdb/xfullpath.exp
+++ b/gdb/testsuite/gdb.gdb/xfullpath.exp
@@ -18,11 +18,6 @@
load_lib selftest-support.exp
-# are we on a target board
-if { [is_remote target] || ![isnative] } then {
- return
-}
-
proc test_with_self {} {
# A file which contains a directory prefix
gdb_test "print gdb_realpath (\"./xfullpath.exp\")" \